[V7] Select rows and Server side pagination #2351
-
TL'DR: In server side pagination, When I select any rows in 1st page using the checkbox, those rows show selected in all pages. I am guessing it is based on row ID, so it shows as selected. For example: If I select 3rd & 4th row in 1st page, then I move to other pages, I see 3rd & 4th row as selected in all of the pages as row ID starts from zero in all pages I am implementing server-side pagination & the table also has a checkbox column for selecting rows. Pagination is little different - I fetch 200 records & display 40rows per page. In the 5th page, I fetch 200 more records & keep displaying 40rows per page... this continues till the end where I fetch 200 & pageSize will be 40 & I am able to implement this. When I log selectedFlatRows - Rows are selected correctly, but on UI the rows are selected based on row ID & also on all pages index & row id starts from zero. hence row is shown selected on all of the pages. for example :When I select 0th rowID in 1st page, I get that row selected in selectFlatRows correctly, But when I move to other pages & deselect it, it gets removed. Please help me in solving this. Thanks for reading. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This should be the same solution I commented on here: |
Beta Was this translation helpful? Give feedback.
This should be the same solution I commented on here:
#2037 (reply in thread)