1

I have a Table with MultiToggle.

I want to check if it is in a range and if not I want to deselect this row before I book the others. How it is possible?

With oTable.setSelectedIndex() I can just select one row but I want to select / deselect more than one.

2
  • for loop can help in this case I guess! Aug 4, 2016 at 12:40
  • Yes but how can i deselect one row Example I have 1 2 4 6 selected and I want just 126 selected
    – Mario
    Aug 4, 2016 at 12:54

3 Answers 3

0

To deselect one or more rows you could use removeSelectionInterval.

If you don't necessarily need sap.ui.table.Table you might switch to sap.m.Table. There you have the method setSelectedItem(oListItem, bSelect)

0

You can use setSelectionMode(). This will remove all the selected table items in sap.ui.table.

0

For sap.ui.table.Table, use clearSelection() method.

For sap.m.Table, use removeSelections(true) method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.