Skip to Content
0
Jul 30, 2020 at 08:46 AM

Avoid Multi row selection using Shift key.

62 Views

Hi,

I am using sap.ui.table.Table and I have set Selection mode as MultiToggle. I have disabled the checkboxes based on one of the columns values. It is working as expected.

But If the user uses the Shift key to select the rows. Even disabled checkboxes are getting selected. Is there any way to avoid the row selection using the Shift key?

I tried resetting the selected indices of a table on the rowSelectionChange Event. It is working but it will add additional validation whenever there is a row selection change even though the user has not used the Shift key for row selection.

Thanks,

Bhavya