We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to get the current paged items when page changes?

I need to use remote paging because there could be hundreds of thousands of records but I need to keep track of which items have been checked as they page back and forth. I was looking at keeping an in memory list of the items that were checked and then as they page back and forth, check the items that were previously checked. I was planning on using ActionComplete along with SelectRowsAsync but I need to first inspect the newly fetched paged data to see which items/rows need to be selected. How do I get the current page list of items?


1 Reply

NP Naveen Palanivel Syncfusion Team January 24, 2023 02:15 AM UTC

Hi Jonathan,


We have checked your query and we suggest you to use GetCurrentViewRecordsAsync method. Also we would like to inform that GetCurrentViewRecordsAsync method will return data present only in the current page DataGrid. If paging is applied in DataGrid then it will bring the current view records. If the method meets your requirement you can use this method to get records. Kindly refer the below reference for your information.


Reference: https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_GetCurrentViewRecordsAsync


Kindly get back to us if you have further queries.


Regards,

Naveen Palanivel


Loader.
Live Chat Icon For mobile
Up arrow icon