Skip to content

Commit 7934d2c

Browse files
Integrated latest changes at 10-31-2024 4:30:59 PM
1 parent ac1962f commit 7934d2c

19 files changed

+47
-114
lines changed

ej2-react/listview/check-list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
1010

1111
# Check list in React Listview component
1212

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.
1414

1515
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.
1616

@@ -27,7 +27,7 @@ The Checkbox will be useful in the scenario where we need to select multiple opt
2727

2828
## Checkbox Position
2929

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.
3131

3232
{% tabs %}
3333
{% highlight js tabtitle="index.jsx" %}

ej2-react/listview/customizing-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ return (<ListViewComponent id='list' dataSource={listData} groupTemplate={groupT
170170
</ListViewComponent>);
171171
```
172172

173-
In the below example, we have grouped Listview based on the category. The category of each list item should be mapped with [`groupBy`] field of the data. We have also displayed grouped list items count in the group list header.
173+
In the below example, we have grouped Listview based on the category. The category of each list item should be mapped with [`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.
174174

175175
{% tabs %}
176176
{% highlight js tabtitle="index.jsx" %}

ej2-react/listview/data-binding.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
1010

1111
# Data binding in React Listview component
1212

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.
1414

1515
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.
1616

@@ -28,7 +28,7 @@ ListView supports different kind of data services such as OData, OData V4, Web A
2828
| sortBy | string | Specifies sorting field, which is used to sort the listview data. |
2929
| htmlAttributes | string | Specifies list item html attributes field. |
3030

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.
3232
3333
## Bind to local data
3434

@@ -71,7 +71,7 @@ The below example illustrates the concept of binding Array of JSON data.
7171

7272
## Bind to remote data
7373

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.
7575

7676
In the below sample, displayed first 6 Products from Product table of NorthWind data service.
7777

ej2-react/listview/grouping.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ domainurl: ##DomainURL##
1212

1313
ListView supports to wrap the nested element into a group based on category.
1414

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.
1616

1717
In below sample, Cars are grouped based on its category using groupBy field.
1818

@@ -29,4 +29,4 @@ In below sample, Cars are grouped based on its category using groupBy field.
2929

3030
## Customization
3131

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.

ej2-react/listview/how-to/add-and-remove-list-items-from-listview.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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
44
description: Learn here all about Add and remove list items from listview in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
55
control: Add and remove list items from listview
66
platform: ej2-react
@@ -12,18 +12,13 @@ domainurl: ##DomainURL##
1212

1313
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.
1414

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
1816
[actionComplete](https://ej2.syncfusion.com/react/documentation/api/list-view/#actioncomplete) handler.
1917

20-
* 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.
2319

2420
* Bind the click handler to the delete icon created in step 1. Within the click event, remove the list item by passing the
25-
delete icon list item to
26-
[`removeItem`](https://ej2.syncfusion.com/react/documentation/api/list-view/#removeitem) method.
21+
delete icon list item to [`removeItem`](https://ej2.syncfusion.com/react/documentation/api/list-view/#removeitem) method.
2722

2823
{% tabs %}
2924
{% highlight js tabtitle="index.jsx" %}

ej2-react/listview/how-to/create-dual-list-from-listview.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Create dual list from listview in React Listview component | Syncfusion
3+
title: Create dual list from React Listview component | Syncfusion
44
description: Learn here all about Create dual list from listview in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
55
control: Create dual list from listview
66
platform: ej2-react
@@ -10,8 +10,7 @@ domainurl: ##DomainURL##
1010

1111
# Create dual list from listview in React Listview component
1212

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.
1514

1615
## Use cases
1716

@@ -20,26 +19,22 @@ events. This section explains how to integrate the ListView component to achieve
2019

2120
## Integration of Dual List
2221

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.
2523

2624
The dual list supports:
2725

2826
* Moving whole data from one list to another.
2927
* Moving selected data from one list to another.
3028
* Filtering the list by using a client-side typed character.
3129

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.
3631

3732
## Manipulating data
3833

3934
## Moving whole data from the first list to the second list(>>)
4035

4136
* 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
4338
of the first ListView is not empty.
4439

4540
## 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
4944

5045
## Moving selected item from one list to another list (>) and (<)
5146

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.
5548

5649
## Filtering method
5750

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.
6152

6253
## Sorting
6354

64-
* By using the dual list, list items can be sorted in the ListView component using the
65-
[sortOrder](https://ej2.syncfusion.com/react/documentation/api/list-view/#sortorder) property.
66-
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.
6756

6857
{% tabs %}
6958
{% highlight js tabtitle="index.jsx" %}

ej2-react/listview/how-to/customize-listview-as-chat-window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Customize listview as chat window in React Listview component | Syncfusion
3+
title: Customize as chat window in React Listview component | Syncfusion
44
description: Learn here all about Customize listview as chat window in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
55
control: Customize listview as chat window
66
platform: ej2-react

ej2-react/listview/how-to/customize-listview-with-dynamic-tags.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Customize listview with dynamic tags in React Listview component | Syncfusion
3+
title: Customize listview with dynamic tags | Syncfusion
44
description: Learn here all about Customize listview with dynamic tags in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
55
control: Customize listview with dynamic tags
66
platform: ej2-react
@@ -95,30 +95,6 @@ Refer to the following code sample of actionComplete event.
9595

9696

9797

98-
```ts
99-
100-
//Method to hide/show the dialog and update the ListView data source
101-
function renderDialog(id) {
102-
if (document.getElementsByClassName('e-popup-open').length !== 0) {
103-
dialogInstance.hide();
104-
}
105-
else {
106-
let listElem: any = document.getElementById('dialog').querySelector("#list");
107-
let listIns = document.getElementById('dialog').querySelector("#list") && document.getElementById('dialog').querySelector("#list").ej2_instances && document.getElementById('dialog').querySelector("#list").ej2_instances[0] ? document.getElementById('dialog').querySelector("#list").ej2_instances[0] : undefined;
108-
if(listIns){
109-
listIns.dataSource = datasource[id];
110-
listIns.fields = fields;
111-
listIns.addEventListener('select', ()=> { addTag(event);});
112-
listIns.dataBind();
113-
listIns.appendTo(listElem);
114-
dialogInstance.position = { X: document.querySelector('.e-add-icon').getBoundingClientRect().left + 50, Y: document.querySelector('.e-add-icon').getBoundingClientRect().top - 5 };
115-
dialogInstance.show();
116-
}
117-
}
118-
}
119-
120-
```
121-
12298
```ts
12399
//Method to hide/show the dialog and update the ListView data source
124100
function renderDialog(id) {
Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Filter list items in the listview in React Listview component | Syncfusion
3+
title: Filter list items in React Listview component | Syncfusion
44
description: Learn here all about Filter list items in the listview in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
55
control: Filter list items in the listview
66
platform: ej2-react
@@ -10,20 +10,14 @@ domainurl: ##DomainURL##
1010

1111
# Filter list items in the listview in React Listview component
1212

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.
1614

1715
* Render a textbox to get input for filtering data.
1816

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.
2218

2319
* Bind the `keyup` event for textbox to perform filtering operation. To filter list data, pass the list data source to the
24-
`DataManager`, manipulate the data using the
25-
[`executeLocal`](https://ej2.syncfusion.com/documentation/api/data/dataManager/#executelocal) method,
26-
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.
2721

2822
{% tabs %}
2923
{% highlight js tabtitle="index.jsx" %}
@@ -36,7 +30,4 @@ following steps to render the ListView with filtered data.
3630

3731
{% previewsample "page.domainurl/code-snippet/listview/filter-cs1" %}
3832

39-
> In this demo, data has been filtered with starting character of the list items. You can also filter list items with ending
40-
> character by passing the `endswith` in
41-
> [where](https://ej2.syncfusion.com/documentation/api/data/query/#where)
42-
> clause instead of `startswith`.
33+
> 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`.

ej2-react/listview/how-to/get-selected-items-from-listview.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Get selected items from listview in React Listview component | Syncfusion
3+
title: Get selected items from React Listview component | Syncfusion
44
description: Learn here all about Get selected items from listview in Syncfusion React Listview component of Syncfusion Essential JS 2 and more.
55
control: Get selected items from listview
66
platform: ej2-react
@@ -10,18 +10,14 @@ domainurl: ##DomainURL##
1010

1111
# Get selected items from listview in React Listview component
1212

13-
Single or many items can be selected by users in the ListView component. An API is used to get selected items from the
14-
list items. This is called as the
15-
[`getSelectedItems`](https://ej2.syncfusion.com/react/documentation/api/list-view/#getselecteditems)
13+
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)
1614
method.
1715

1816
## `getSelectedItems` method
1917

20-
This is used to get the details of the currently selected item from the list items. It returns the
21-
[`SelectedItem`](https://ej2.syncfusion.com/react/documentation/api/list-view/selectedItem/) |
22-
[`SelectedCollection`](https://ej2.syncfusion.com/react/documentation/api/list-view/selectedCollection/)
18+
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/)
2319

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.
2521

2622
| Return type | Purpose |
2723
|------------|-------------------|

0 commit comments

Comments
 (0)