Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1710
Hierarchical Grid Row Selection with CheckBoxes
posted

I have a Hierarchical Grid where the child rows have a check boxes enabled for row selection 

This behavior can be seen on the Row Selector Checkboxes example  http://es.infragistics.com/products/jquery/sample/hierarchical-grid/row-selector-checkboxes

If I click on several of the check boxes, the check box is checked and the rows take on a selected color.  If I then click on a parent row the check box state is maintained which is what I want.

Now if I CTRL click on the same rows visually it appears the same [the check box is checked and the rows take on a selected color.]  However if I click on a parent row all of the items immediately become unselected/unchecked which is what I do not want.

Is there a way to have click/selecting a cell but not selecting it via the check box to keep the check box selected.  I look for a way to hook into an event and manually set the checkbox status like it was clicked on but could not locate anything to do this.

Parents
  • 29417
    Verified Answer
    Offline posted

    Hello ddally

    Thank you for posting in our forum. 

    Generally this is how the grid behaves by design. It will not allow you to have selected rows from different layouts. This is also true for the checkbox row selectors in the latest version. They’ve been made to behave exactly as the selection in the latest versions (again by design) so I would not recommend using it to achieve this.

    Generally you could workaround this with a bit of custom code. Basically the problem is that the selection is cleared every time you select anything from a different layout so you could handle the rowSelectionChanged and save the current selections for the child and parent layout and then reapply it when needed.

    I’ve attached a sample for you reference .Let me know if you have any questions.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

    igHierarchicalGrid_checkBoxSelection.zip
Reply Children