Hello experts,
Could you help me?
I need set a row in a table as "selected". But I can“t do it.
I know how to get row selected and remove the selections... but how I can mark?
var oTable = this.getView().byId("TableID");
var oContext = oTable.getSelectedContexts();
oTable.removeSelections(); oTable.setSelectContexts(1);
Thank you!
Request clarification before answering.
Hi Celio,
Can you try one of the following options:
1) setSelectedItem
oTable.setSelectedItem(oTable.getItems()[0])
-> This would select first row (0)
2) setSelectedItemById
oTable.setSelectedItemById("__item0-__xmlview0--testTable-0");
-> This would select row with mentioned ID
Kind regards,
Garcia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.