To select multiple rows currently infragistics WebHierarchicalDataGrid supports 1. Click and Drag to select multiple rows 2. Hold CTRL + click on the rows to select multiple I want the same functionality on click of rows without using CTRL.Also I want to select multiple levels of child grids, which are dynamically created.
Thanks you very much for Help :)
Hi,
I was not able to understand your struggle. If you select rows programmatically on checkbox event, then you can use the same event to select rows in child bands. Please let me know If I misunderstood you or if you have further questions on the matter.
Hello Hristo,
Thanks for quick replay. Yeah I tried your solution its working. However as you said user may face problems on single select. So we come up solution with check box on each row check to select multiple rows. But checkbox event will fire after row changing events. How to approach on this.
Multiple levels of child grid (child grid may contain another grid). Reference image added below
And all child grids are added dynamically. On select of check box it should select the current row and also keep the state of previous row.
Thanks in advance
Hi Reddy,
Customizing the default behavior can be achieved somehow using the selection client side events. For example handling the RowSelectionChanging event and executing this code:
function WebDataGrid1_Selection_RowSelectionChanging(sender, eventArgs){ eventArgs.set_cancel(true); var selection = sender.get_behaviors().get_selection(); var collection = selection.get_selectedRowsCollections()[0]; collection.add(eventArgs.getNewSelectedRows().getRow(0));}
It cancel the event and then programmatically add rows to the selected rows collection.
However think about if your users are going to select single row in a scenario and how are they going to select only one row.
Please explain your question about the multiple levels of child grid as I was not able to understand your demand.