The best way for inline editing mode is adding not-editable-row
class to the row. You can use rowattr
to add the class based on the content of some column. See the answer for details.
If you use form editing you have to choose another way. It you use navGrid
then you can disable some editing or hide buttons based on the value in the column of selected row. See the answer and this one for more details. beforeSelectRow
is good place for such changes.