Select rows in sap.ui.table.Table Control

4.3k Views Asked by At

Is there a way to select the number of shown rows in a sap.ui.table.Table like shown in the bottom-right corner of the picture below?

sap.ui.table

Also my first column doesn't show checkboxes at the first column for multiselection. Multiselect does work, but I want checkboxes in the first column for it. How to do that?

I've set the attribute:

selectionMode : sap.ui.table.SelectionMode.Multi,

multiselect doesn't work

1

There are 1 best solutions below

0
On BEST ANSWER

Here is an example of how to achieve this: embed.plnkr.co/NQpkJo/

  • In order to change the number of shown rows, you need to add the property visibileRowCount to your table which you could manipulate via data binding from single-click controls like sap.m.StepCount or sap.m.Slider.
  • The selection mode "MultiToggle" provides an additional column to select rows, which even enables us to select all of them if needed.
    The value "Multi" is deprecated since UI5 version 1.38.