I have a situation where when I am doing inline editing, I like a field called “Service” to be set to where editable is false.
When I click on the add new record icon (the one that comes with jqGrid), I like to set the editable to yes for the “Service” field. How can I do this dynamically?
I checked online but was not able to find a suitable answer.
The main idea of changing
editableproperty dynamically I described here and here. It’s important to understand thateditableproperty exist only for the whole column, but you can change the value any time. So if you would change the value ofeditableproperty for some column before inline editing will be initialized (before editRow will be called directly or indirectly). You can use the approach to implement almost any dynamical scenario. Probably you will have to use custom navigator buttons instead of the standard buttons added byinlineNav(if you use the method).In the answer and in another one I shown additionally how you can hide or disable some editing buttons depend on which row (or depend on the row content) is currently selected. It could be one option which could makes the editing more dynamic.