Grid DataBound event selection issue

Hi there,
I'm attaching a sample where using a DataBound Grid Event even with no implementation in it, the grid will keep the selection index when we navigate between pages.

Steps:
1- Click on the first element of the grid in order to select it and make sure the checkbox get selected.
2- Navigate to the second page and the first element is checked.

Thanks
Ernesto

Attachment: BlazorAppGridCheckbox_83f4120e.zip

1 Reply

RS Renjith Singh Rajendran Syncfusion Team April 9, 2020 05:02 AM UTC

Hi Ernesto, 

Thanks for contacting Syncfusion support. 

We have analyzed your sample, and the cause for this behavior is that you have enabled PersistSelection property in Grid. This is the default behavior when enabling PersistSelection feature of Grid. Please refer the notes section of the below documentation, 

Please remove the below highlighted property to overcome this behavior. 

 
<GridSelectionSettings CheckboxOnly="false" PersistSelection="true" CellSelectionMode="CellSelectionMode.Flow" Type="SelectionType.Multiple" /> 


Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran. 


Loader.
Up arrow icon