How to disable or enable edit for selective cell in dojox data grid i.e
Imagine I have two columns (A, B) in a data grid. I want column value of B to be editable based on the value of column A. I have seen one solution in stack overflow which was specific to a DOJO version. I would like to know if there are APIs by which we can achieve above objective.
My preferred method is to override the
canEdit: function(inCell, inRowIndex)method of the DataGrid. From that, you can get the item:
this.getItem(inRowIndex)then work out if it should be editable or not, and return true/false.
This does override the editable flag on the column though, so you’ll need to do something with that if needed.