166
Views
2
Comments
[OutSystems Data Grid] How to select multiple rows using hotkeys and get its data at server side?
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

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

2022-11-12 11-28-30
Gonçalo Martins
Staff

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

2025-10-07 10-57-30
Ashier Fernandes

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?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.