Hello,
I need to select multiple rows by shift click/control click on data grid between the selected rows and get the selected rows data at server side to preform operations on them.
I am using checkbox for row selection so need to enable them also to perform any operation.
is there any way to select the rows between row number 1 to row number 5 and get the data?
Thanks,
Shivani Rajoriya
Hi @Shivani Rajoriya
That functionality for using hotkeys is already provided out of the box.To get the data you can use the client action GetSelectedRowsData.You can check all the available client actions here
Cheers,GM
Hi Shivani,From the image you shared, your question is, you want to select all rows between index 1 and index 5 by pressing a hotkey (i.e. Shift button).We could achieve this by having a JavaScript that returns True when Shift key is pressed using an event.
If the shift key is pressed then get the last selected row index with the help of GetSelectedRowsData, and Set the IsSelected = True for all rows between first and last selected row with the help of SetRowAsSelected.
@Gonçalo Martins your thoughts on this?