Skip to content

How to enable Control + Click multi-cells selection on sap.ui.table - Empower sap.ui.table with Excel-like functionalities (Part 2)

Blog Banner

Overview

This blog wants to follow the Part 1, where a sap.ui.table can be enhanced with some Excel-like functionalities.

Today I want to share how I enabled the Control + Click multi-cells selection on a grid table without using external libraries.

Ctrl + Click mult-cell selection on sap.ui.table

Working in the App Designer

How it works

Inside the onmousedown event we check the parameter e.ctrlKey.

If the Ctrl key is pressed and we have more than one cell selected then we show a popover for the bulk edit.

Result

Here a GIF:

Ctrl + Click mult-cell selection on sap.ui.table

Hope this helps

Happy Christmas and New Year!