Readonly Checkbox cell.


#1

Hi.
Is there a way to put a readonly checkbox cell in the grid loading from a xml file?
Thanks.


#2

You may use setDisabled method to block the checking of a checkbox:
docs.dhtmlx.com/doku.php?id=dhtm … etdisabled

or you may block it using the onEditCell event:

grid.attachEvent("onEditCell", function(stage,rId,cInd,nValue,oValue){
   if(cInd==2&&rId=="row23")
      return false; // block the edit operation
   return true; // allow the edit of the cell
});