Prevent checkbox in grid from unchecking when a row is expanded.

I have a  grid with a child grid, and beside the button that expands it is a checkbox. Now when I check the checkbox and expand the row, all the checkbox that I have checked are now unchecked. How can I prevent this? I tried the detailDataBound API of grid but that seems to only work at initial expand.

3 Replies

PS Pavithra Subramaniyam Syncfusion Team July 30, 2018 11:42 AM UTC

Hi Robin, 

Thanks for contacting Syncfusion Support. 

We have checked your query and we have confirmed  “Selection is not maintaining while expand/collapse child grid” as a defect and logged a report for the same. The fix will be available in any of our upcoming release.  

Regards, 
Pavithra S.  



DI Dileep April 25, 2022 09:34 AM UTC

Hi Synfusion team is this release was done if yes please share the sample code . 


I am facing the same issue on this . the check box selection was not maintained when the tr



RS Rajapandiyan Settu Syncfusion Team April 26, 2022 01:11 PM UTC

Hi Dileep, 


Thanks for contacting Syncfusion support.


The reported issue (“Selection is not maintaining while expand/collapse child grid”) has been resolved in the Grid. The selection is maintained properly when expanding and collapsing the childGrid. Find the below sample and video demo for your reference.


Sample: https://stackblitz.com/edit/dcec4m?file=index.html


Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/video_checkbox_selection_hierarchy901543952.zip


Still, if you face the same issue, kindly share the below details to replicate the issue at our end.


  1. Share the complete Grid code you have used.
  2. Share the Grid script version.
  3. Share the video demo of the reported problem.
  4. If possible, share the issue reproducible sample or try to make the issue in the given sample.
  5. Did you refresh the parent Grid while expanding the detail row?


Regards, 

Rajapandiyan S


Loader.
Up arrow icon