cancel
Showing results for 
Search instead for 
Did you mean: 

Making table columns non-editable

former_member213574
Participant
0 Kudos

Hi All,

I have a table with one column is having sap.m.Input and the other column with a date picker.I wanted to disable both as non-editable,after pressing a button.

Is it possible to make the entries setEditable(false) and rerender the table ?

Thanks and regards,

Arun

Accepted Solutions (0)

Answers (1)

Answers (1)

saivellanki
Active Contributor
0 Kudos

Hi Arun,

You didn't mention whether the button is placed in each list item of table (or) outside the table.

If it is outside the table, will this help? - JS Bin - Collaborative JavaScript Debugging

And also, I guess instead of editable you can use enabled. If you want to change it to editable, you can use the same logic.

Regards,

Sai Vellanki.

former_member182862
Active Contributor
0 Kudos

Based on what Sai has.

IMO, it is better to use a model to control the edit-ability of controls like this

JS Bin - Collaborative JavaScript Debugging

In the manner, we do not need to iterate thru the cells.

Thanks

-D