Row Index Not Getting Correct After Applying Paging

Hi,
When I fetching data I want to mark selected that rows by row index. but when I applying paging on grid rows will not selected, because grid is maintain index for each page (0-9). but my records have index such as (20 or 118) because records is exists on different pages. 

Below are the attachments. please check and reply ASAP. thanks

Attachment: GridApp648114350_89008766.zip

1 Reply 1 reply marked as answer

PG Praveenkumar Gajendiran Syncfusion Team March 22, 2021 12:15 PM UTC

Hi Babar,

Greetings from Syncfusion support.

We checked your query and provided sample. Based on that we suspect you enable Pagination and Virtualization feature in the Grid. If so, we would like to inform you that Virtual scrolling is not compatible with Pagination feature. 
Also, when pagination is enabled in the Grid, the row indexes are generated based on the current page records and the indexes for row elements will start from 0 in each page. This is the default behavior.

However, you can achieve your mentioned requirement by using Virtual Scroll feature without Paging feature. Please refer the below documentation for virtual scroll feature in Grid.

Virtual Scroll - Documentation: https://ej2.syncfusion.com/vue/documentation/grid/virtual/
                           Online Demo: https://ej2.syncfusion.com/vue/demos/#/material/grid/virtual-scrolling.html

Please get back to us if you need further assistance with this.

Regards,
Praveenkumar G 


Marked as answer
Loader.
Up arrow icon