I currently have an sap.ui.table with selection mode set to sap.ui.table.SelectionMode.MultiToggle and selection behavior to sap.ui.table.SelectionBehavior.Row.
My question is if there is any way I can programmatically(not by clicking on the table rows) select more than 1 row from the table. For example when the selection mod is set to sap.ui.table.SelectionMode.Single , i can use the setSelectedIndex(index).At first, I was expecting that setSelectedIndex(index) will add the row to the currently selected rows, but it just erase all previously selections and selects the current row.
Is there any workaround for this? Thank you.