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.
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
Consistency is good, I coded first with the check boxes behavior, now that it is the same I will take a look at your example , or possibly just capture the selection on the selectionchanged or changing event.
Thanks for the update
Let me know if you happen to need any further assistance in the matter.