My requirement to set some cells in DataTable to be read only and some as editable. This I want to do on rendering of the grid as well as dynamically later after rendering in javascript.
Is there any property on data/cell level to set it readonly and change editor of the that particular cell only ?
Currently read only is assigned on column level to CSS attribute and I would like to set it on every cell/data level.
One more question :
How to check if any value exist on cell on onBeforeEditStart event ? As I was trying to check with grid.getItem() but it doesn’t give cell value but returns whole row . And getEditor() method also doesn’t return editor (may be because on this event editor is not opened yet ?)
i am trying to disable editing a cell in a property view but your example for a datatable is not working. i have the onclick event working when you click the correct cell but not sure what to do next. how do i disable edibility here?
var sow_details_left = {
view:"property", id:"sow_details_left",
nameWidth:150,
on:{
'onItemClick': function(id){
if (id == "sow_filename") {
// need to disable editable cell here
}
}
}
}