ColumnType.CheckBox in combination with paging

Hi - I have a SFgrid where I have a checkbox column and I use paging on the grid. The usecase is that when the user selects the header checkbox, all rows are selected, also on other pages. 

How do I only select the shows rows in the page? 

 


3 Replies

MS Monisha Saravanan Syncfusion Team September 1, 2022 02:33 PM UTC

Hi Soren,


Greetings from Syncfusion support.


Query: “I have a SFgrid where I have a checkbox column and I use paging on the grid. The usecase is that when the user selects the header checkbox, all rows are selected, also on other pages. How do I only select the shows rows in the page? ”


We have checked your query and we would like to inform that by default in DataGrid on selecting header checkbox will select the records present in the current page of the Grid. It will select all the records in the DataGrid only when we enable PersistSelection feature of DatGrid. Kindly check the attached sample for your reference.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorApp11766226724.zip


Please get back to us if you have further queries.


Regards,

Monisha



SM Soren M September 2, 2022 09:45 AM UTC

Thank you for your answer Monisha, this is what I needed. 


Now I just have to find out why I introduced the 

EnablePersistence="true" in the first place ;) 



MS Monisha Saravanan Syncfusion Team September 5, 2022 03:33 AM UTC

Hi Soren,


Welcome.


We are glad to hear that the reported issue has been resolved. Kindly get back to us if you have further queries. As always we will be happy to help you.


Regards,

Monisha


Loader.
Up arrow icon