I’m trying to create eXcell for readonly checkbox as described in documentation:
function eXcell_roch(cell){
if (cell){
this.cell = cell;
this.grid = this.cell.parentNode.grid;
}
this.edit = function(){}
this.isDisabled = function(){ return true; }
this.setValue=function(val){
var c_val = (val==0)?'':' checked';
this.setCValue("<input type='checkbox'"+c_val+">",val);
}
}
eXcell_roch.prototype = new eXcell;
But in the grid this new checkbox (of type roch) still could be checked/unchecked.
Where is a mistake?