You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ej2-react/listview/check-list.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
10
10
11
11
# Check list in React Listview component
12
12
13
-
The ListView supports checkbox in default and group-lists which is used to select multiple items. The checkbox can be enabled by the `showCheckBox` property.
13
+
The ListView supports checkbox in default and group-lists which is used to select multiple items. The checkbox can be enabled by the [`showCheckBox`](https://ej2.syncfusion.com/react/documentation/api/list-view/#showcheckbox) property.
14
14
15
15
The Checkbox will be useful in the scenario where we need to select multiple options. For Example, In Shipping cart we can be able to select or unselect the desired items before checkout and also it will be useful in selecting multiple items that belongs to same category using the group list.
16
16
@@ -27,7 +27,7 @@ The Checkbox will be useful in the scenario where we need to select multiple opt
27
27
28
28
## Checkbox Position
29
29
30
-
In ListView the checkbox can be positioned into either `Left` or `Right` side of the list-item text. This can be achieved by `checkBoxPositon` property. By default, checkbox will be positioned to `Left` of list-item text.
30
+
In ListView the checkbox can be positioned into either `Left` or `Right` side of the list-item text. This can be achieved by [`checkBoxPosition`](https://ej2.syncfusion.com/react/documentation/api/list-view/#checkboxposition) property. By default, checkbox will be positioned to `Left` of list-item text.
Inthebelowexample, wehavegroupedListviewbasedonthe category. Thecategoryofeachlistitemshouldbemappedwith [`groupBy`](https://ej2.syncfusion.com/react/documentation/api/list-view/fieldSettingsModel/#groupby) field of the data. We have also displayed grouped list items count in the group list header.
Copy file name to clipboardExpand all lines: ej2-react/listview/data-binding.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
10
10
11
11
# Data binding in React Listview component
12
12
13
-
ListView provides the option to load the data either from local data sources or remote data services. This can be done through dataSource property which supports the data type of array or through DataManager.
13
+
ListView provides the option to load the data either from local data sources or remote data services. This can be done through [`dataSource`](https://ej2.syncfusion.com/react/documentation/api/list-view/#datasource) property which supports the data type of array or through DataManager.
14
14
15
15
ListView supports different kind of data services such as OData, OData V4, Web API and data formats like XML, JSON, JSONP with the help of DataManager Adaptors.
16
16
@@ -28,7 +28,7 @@ ListView supports different kind of data services such as OData, OData V4, Web A
28
28
| sortBy | string | Specifies sorting field, which is used to sort the listview data. |
29
29
| htmlAttributes | string | Specifies list item html attributes field. |
30
30
31
-
> When complex data bind to ListView, you should map the fields properly. Otherwise, the ListView properties remain as undefined or null.
31
+
> When complex data bind to ListView, you should map the [`fields`](https://ej2.syncfusion.com/react/documentation/api/list-view/#fields) properly. Otherwise, the ListView properties remain as undefined or null.
32
32
33
33
## Bind to local data
34
34
@@ -71,7 +71,7 @@ The below example illustrates the concept of binding Array of JSON data.
71
71
72
72
## Bind to remote data
73
73
74
-
ListView supports to retrieve the data from remote data services with the help of DataManager component and Query property allows to fetch data and return it to ListView from the database.
74
+
ListView supports to retrieve the data from remote data services with the help of [`DataManager`](https://ej2.syncfusion.com/react/documentation/data/getting-started) component and [`Query`](https://ej2.syncfusion.com/react/documentation/data/querying) property allows to fetch data and return it to ListView from the database.
75
75
76
76
In the below sample, displayed first 6 Products from Product table of NorthWind data service.
Copy file name to clipboardExpand all lines: ej2-react/listview/grouping.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ domainurl: ##DomainURL##
12
12
13
13
ListView supports to wrap the nested element into a group based on category.
14
14
15
-
The category of each list item can be mapped with groupBy field in the data table, which also supports single-level navigation.
15
+
The category of each list item can be mapped with [`groupBy`](https://ej2.syncfusion.com/react/documentation/api/list-view/fieldSettingsModel/#groupby) field in the data table, which also supports single-level navigation.
16
16
17
17
In below sample, Cars are grouped based on its category using groupBy field.
18
18
@@ -29,4 +29,4 @@ In below sample, Cars are grouped based on its category using groupBy field.
29
29
30
30
## Customization
31
31
32
-
The grouping header can be customized by using groupTemplate property for both inline and fixed group header.
32
+
The grouping header can be customized by using [`groupTemplate`](https://ej2.syncfusion.com/react/documentation/api/list-view/#grouptemplate) property for both inline and fixed group header.
Copy file name to clipboardExpand all lines: ej2-react/listview/how-to/add-and-remove-list-items-from-listview.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
layout: post
3
-
title: Add and remove list items from listview in React Listview component | Syncfusion
3
+
title: Add and remove list items in React Listview component | Syncfusion
4
4
description: Learn here all about Add and remove list items from listview in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
5
5
control: Add and remove list items from listview
6
6
platform: ej2-react
@@ -12,18 +12,13 @@ domainurl: ##DomainURL##
12
12
13
13
You can add or remove list items from the ListView component using the [`addItem`](https://ej2.syncfusion.com/react/documentation/api/list-view/#additem) and [`removeItem`](https://ej2.syncfusion.com/react/documentation/api/list-view/#removeitem) methods. Refer to the following steps to add or remove a list item.
14
14
15
-
* Render the ListView with data source, and use the
16
-
[template](https://ej2.syncfusion.com/react/documentation/api/list-view/#template) property to append the delete icon
17
-
for each list item. Also, bind the click event for the delete icon using the
15
+
* Render the ListView with data source, and use the [template](https://ej2.syncfusion.com/react/documentation/api/list-view/#template) property to append the delete icon for each list item. Also, bind the click event for the delete icon using the
* Render the Add Item button, and bind the click event. On the click event handler, pass data with random id to
21
-
the [`addItem`](https://ej2.syncfusion.com/react/documentation/api/list-view/#additem) method to add a
22
-
new list item on clicking the Add Item button.
18
+
* Render the Add Item button, and bind the click event. On the click event handler, pass data with random id to the [`addItem`](https://ej2.syncfusion.com/react/documentation/api/list-view/#additem) method to add a new list item on clicking the Add Item button.
23
19
24
20
* Bind the click handler to the delete icon created in step 1. Within the click event, remove the list item by passing the
Copy file name to clipboardExpand all lines: ej2-react/listview/how-to/create-dual-list-from-listview.md
+8-19Lines changed: 8 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
layout: post
3
-
title: Create dual list from listview in React Listview component | Syncfusion
3
+
title: Create dual list from React Listview component | Syncfusion
4
4
description: Learn here all about Create dual list from listview in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
5
5
control: Create dual list from listview
6
6
platform: ej2-react
@@ -10,8 +10,7 @@ domainurl: ##DomainURL##
10
10
11
11
# Create dual list from listview in React Listview component
12
12
13
-
The dual list contains two ListView. This allows you to move list items from one list to another using the client-side
14
-
events. This section explains how to integrate the ListView component to achieve dual list.
13
+
The dual list contains two ListView. This allows you to move list items from one list to another using the client-side events.This section explains how to integrate the ListView component to achieve dual list.
15
14
16
15
## Use cases
17
16
@@ -20,26 +19,22 @@ events. This section explains how to integrate the ListView component to achieve
20
19
21
20
## Integration of Dual List
22
21
23
-
Here, two ListView components have been used to display the list items. An ej2-button is used to transfer data between
24
-
the ListView, and a textbox is used to achieve the UI of filtering support.
22
+
Here, two ListView components have been used to display the list items. An ej2-button is used to transfer data between the ListView, and a textbox is used to achieve the UI of filtering support.
25
23
26
24
The dual list supports:
27
25
28
26
* Moving whole data from one list to another.
29
27
* Moving selected data from one list to another.
30
28
* Filtering the list by using a client-side typed character.
31
29
32
-
In the ListView component, sorting is enabled using the
33
-
[sortOrder](https://ej2.syncfusion.com/react/documentation/api/list-view/#sortorder) property, and
34
-
the [select](https://ej2.syncfusion.com/react/documentation/api/list-view/#select) event is triggered
35
-
while selecting an item. Here, the select event is triggered to enable and disable button states.
30
+
In the ListView component, sorting is enabled using the [sortOrder](https://ej2.syncfusion.com/react/documentation/api/list-view/#sortorder) property, and the [select](https://ej2.syncfusion.com/react/documentation/api/list-view/#select) event is triggered while selecting an item. Here, the select event is triggered to enable and disable button states.
36
31
37
32
## Manipulating data
38
33
39
34
## Moving whole data from the first list to the second list(>>)
40
35
41
36
* Here, the whole data can be moved from the first ListView to the second by clicking the first button. When clicking the button,
42
-
the whole list items are sliced, and `concat` with the second ListView. This button is enabled only when the data source
37
+
the whole list items are sliced, and connect with the second ListView. This button is enabled only when the data source
43
38
of the first ListView is not empty.
44
39
45
40
## Moving whole data from the second list to the first list(<<)
@@ -49,21 +44,15 @@ list. This button is enabled only when the data source of the second ListView is
49
44
50
45
## Moving selected item from one list to another list (>) and (<)
51
46
52
-
* The [Select](https://ej2.syncfusion.com/react/documentation/api/list-view/#select) event is triggered
53
-
when selecting a list item in the ListView. The selected items can be transferred between two lists. These buttons will be
54
-
enabled when selecting an item in lists.
47
+
* The [Select](https://ej2.syncfusion.com/react/documentation/api/list-view/#select) event is triggered when selecting a list item in the ListView. The selected items can be transferred between two lists. These buttons will be enabled when selecting an item in lists.
55
48
56
49
## Filtering method
57
50
58
-
* The filtering method is used to filter list items when typing a character in the text box. In this
59
-
method, the [`dataManager`](https://ej2.syncfusion.com/react/documentation/data/getting-started/) has been
60
-
used to fetch data from the data source and display in ListView.
51
+
* The filtering method is used to filter list items when typing a character in the text box. In this method, the [`dataManager`](https://ej2.syncfusion.com/react/documentation/data/getting-started/) has been used to fetch data from the data source and display in ListView.
61
52
62
53
## Sorting
63
54
64
-
* By using the dual list, list items can be sorted in the ListView component using the
You can enable sorting in one ListView; in the same order, data can be transferred to another ListView.
55
+
* By using the dual list, list items can be sorted in the ListView component using the [sortOrder](https://ej2.syncfusion.com/react/documentation/api/list-view/#sortorder) property. You can enable sorting in one ListView; in the same order, data can be transferred to another ListView.
title: Filter list items in the listview in React Listview component | Syncfusion
3
+
title: Filter list items in React Listview component | Syncfusion
4
4
description: Learn here all about Filter list items in the listview in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
5
5
control: Filter list items in the listview
6
6
platform: ej2-react
@@ -10,20 +10,14 @@ domainurl: ##DomainURL##
10
10
11
11
# Filter list items in the listview in React Listview component
12
12
13
-
The filtered data can be displayed in the ListView component depending upon on user inputs using the
14
-
[`DataManager`](https://ej2.syncfusion.com/react/documentation/data/getting-started/). Refer to the
15
-
following steps to render the ListView with filtered data.
13
+
The filtered data can be displayed in the ListView component depending upon on user inputs using the [`DataManager`](https://ej2.syncfusion.com/react/documentation/data/getting-started/). Refer to the following steps to render the ListView with filtered data.
16
14
17
15
* Render a textbox to get input for filtering data.
18
16
19
-
* Render ListView with
20
-
[`dataSource`](https://ej2.syncfusion.com/react/documentation/api/list-view/#datasource), and set
21
-
the [`sortOrder`](https://ej2.syncfusion.com/react/documentation/api/list-view/#sortorder) property.
17
+
* Render ListView with [`dataSource`](https://ej2.syncfusion.com/react/documentation/api/list-view/#datasource), and set the [`sortOrder`](https://ej2.syncfusion.com/react/documentation/api/list-view/#sortorder) property.
22
18
23
19
* Bind the `keyup` event for textbox to perform filtering operation. To filter list data, pass the list data source to the
and then update filtered data as ListView dataSource.
20
+
`DataManager`, manipulate the data using the [`executeLocal`](https://ej2.syncfusion.com/documentation/api/data/dataManager/#executelocal) method, and then update filtered data as ListView dataSource.
27
21
28
22
{% tabs %}
29
23
{% highlight js tabtitle="index.jsx" %}
@@ -36,7 +30,4 @@ following steps to render the ListView with filtered data.
> In this demo, data has been filtered with starting character of the list items. You can also filter list items with ending character by passing the `endswith` in [where](https://ej2.syncfusion.com/documentation/api/data/query/#where) clause instead of `startswith`.
Single or many items can be selected by users in the ListView component. An API is used to get selected items from the list items. This is called as the [`getSelectedItems`](https://ej2.syncfusion.com/react/documentation/api/list-view/#getselecteditems)
16
14
method.
17
15
18
16
## `getSelectedItems` method
19
17
20
-
This is used to get the details of the currently selected item from the list items. It returns the
This is used to get the details of the currently selected item from the list items. It returns the [`SelectedItem`](https://ej2.syncfusion.com/react/documentation/api/list-view/selectedItem/) | [`SelectedCollection`](https://ej2.syncfusion.com/react/documentation/api/list-view/selectedCollection/)
23
19
24
-
The `getSelectedItems` method returns the following items from the selected list items.
20
+
The [`getSelectedItems`](https://ej2.syncfusion.com/react/documentation/api/list-view/#getselecteditems) method returns the following items from the selected list items.
0 commit comments