syncfusion / ej2-angular-ui-components

Syncfusion Angular UI components library offer more than 50+ cross-browser, responsive, and lightweight angular UI controls for building modern web applications.
https://www.syncfusion.com/angular-ui-components
Other
274 stars 113 forks source link

problem get index datasource ej2-angular-list #225

Closed messxay closed 2 years ago

messxay commented 2 years ago

how to get index item customize template in ej2-angular-list

Indhumathy-Loganathan commented 2 years ago

Hi Messxay,

You can retrieve the index values of the ListView datasource by using the DataManager component Query class. For your reference, we have retried all the id values of ListView items with a button click. Check the below code snippet.

click() { let list = new DataManager(this.data).executeLocal( new Query().select(['id']) ); console.log(list); }

You can find the sample from below link.

https://stackblitz.com/edit/angular-ybgrxj?file=app.component.ts

syncsiva commented 2 years ago

This issue has been resolved and has not had any activity for one week. Closing for housekeeping purposes. Please feel free to reopen if you have any further queries.