If some rows in the grid on first page are set with isSelectable as false, selecting "Select All" will not include other page data

Hi,

If some rows in the grid on first page are set with isSelectable as false, selecting "Select All" will not include other page data.


Sample Code:

https://stackblitz.com/edit/github-eggrmz


1 Reply

AR Aishwarya Rameshbabu Syncfusion Team November 6, 2024 06:26 PM UTC

Hi Krailit,


Greetings from Syncfusion support.


Upon reviewing your query and the provided sample, we have noticed that selection has been disabled for certain rows in the Syncfusion Grid. Consequently, when the selectAll checkbox is clicked, and the getSelectedRecords method is used to retrieve the selected records, it will only return the records from the currently visited page. This occurs because the Grid is unaware of which rows have selection disabled across all pages, and thus, it only returns the selected records from the currently viewed page which is the default behavior of the Grid. In your case if you visit all pages in the Grid and then click the ‘SHOW SELECTED RECORDS’ button, it will display the selected records from all pages.


Regards

Aishwarya R


Loader.
Up arrow icon