on 08-21-2017 12:48 PM
Hi,
I have a sap.ui.table. My selelction mode is multi toggle in table. Based on some condition, I need to disable/non-editable the Table selection check box. I tried few blogs. But not helpful. Can anyone suggest your ideas?
Regards
Karthik S
what have you tried?
if you need to enable/disable a checkbox (per row) on a table, you will logically think this way:
1) identify the row / checkbox,
2) update the editable property of the checkbox
updating the model is easier than having to update the control itself -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergio,
Thanks. I tried applying the checked property directly on the control. But it is throwing error.
Code:
var getAllRows = getCell.getRows();
getAllRows[0].getCells()[0].setEditable(false);
Error: Uncaught TypeError: getAllRows[0].getCells(...)[0].setEditable is not a function
Regards
Karthik S
Try the code snippet in the below link.
This fulfills your requirement. It's a little tricky in terms of looping through the table to the items in a table. But, it should help you in your requirement.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.