cancel
Showing results for 
Search instead for 
Did you mean: 

Table rows selection using checkboxes

0 Kudos

I have a standard Table UI element with multi selection property set to "none".Selection of rows is handled by a checkbox column.

The client requirement is to be able to select multiple rows using shift key.(for ex, user checks 1st row,presses shift key and then checks 10th row,all 10 items have to be selected).How can we achieve this??

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Unfortunately, this is not possible as you cannot know whether user presses SHIFT key or not. You can achieve this in the following way:

create an Action for check box and in onAction of checkbox, check if there is any row(check box value) is already selected or not. If it is selected, then create a popup to confirm, if the user wants to select all the rows till that or not. Then based ok/no you can select all the rows or not.

Hope this helps u,

Regards,

Kiran