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
80
Multi select rows with out using CTRL
posted

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 :)

Parents
No Data
Reply
  • 16310
    Verified Answer
    Offline posted

    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.

Children