Hi Nastaran,
Good day to you. Glad to hear that the solution worked for you.
We have analyzed your query. When you are assigning the async data to listview, you need to re-calculate and assign the data to listview. That is helping to resolve the first page data rendering issue.
dataService.getdata().subscribe(data => {
this.data = data;
this.result = this.getPagerData(1); |
You can access the listview instance by using ViewChild property.
<ejs-listview #listview> </ejs-listview>
@ViewChild("listview") list: any;
//calling method using listview instance
this.list.getSelectedItems(); |
You can bind select event in the listview component, the select event is triggered whenever you select the item .
<ejs-listview #listview id="list" (select)="onClick($event)"></ej2-listview> |
You can change the styles of the element by using mouse event
We have created a sample based on your requirement. Please refer the online sample link given below
Regarding the source code for the our dashboard demo sample, you can get the code by choosing the source tab in the inner top panel where you can find all the code blocks. Also, we prepared the same sample in the below live sample link (you can get the code from here too),
Please revert us if you require any further assistance.
Thanks,
Christo