View Full Version : How to protect a cell on a yui-ext grid?

2 Jan 2007, 11:35 AM
I need to protect the contents of some cells while leaving the others editable. The decision of whether the cell should be editable or not depends on the data.

Is there an easy way to do this? What would be the appropriate approach to implement such behavior?

2 Jan 2007, 11:43 AM
Did you try putting code in the beforeedit event?

3 Jan 2007, 7:03 AM
colModel.isCellEditable() receives a row and column index. You can return false for a non-editable cell.