Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jason Sung on Dec 25, 2007 02:08
open dhtmlx forum
How to set cell edit mode disable or can't be changed

For some criteria, I have to set some cell can't be changed. Is there any way to set the cell edit mode disable or can't be changed?
Answer posted by Stanislav on Dec 25, 2007 17:01
There are two ways to achieve necessary functionality

a) use onEditCell event, this event called each time when edit operation started, by returning "false" from it, operation can be blocked.
b) you can change type of cell on the fly by
    grid.setCellExcellType(...