Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jacob23 on Apr 13, 2008 22:35
open dhtmlx forum
Is dyn cell type can be ro mode only.

Is it possible to make dyn cell type read only.If yes then how ??
Answer posted by Support on Apr 14, 2008 02:41
There are two ways
a) it can be switched to ro , by modifying dhtmlxgrid_cell.js

function eXcell_dyn(cell){
    this.base = eXcell_ed;
    this.base(cell)
    this.isDisabled=function(){return true;}   // need to be added
    this.getValue = function(){


b)_ It can be done by using onEditCell event
    grid.attachEvent("onEditCell",function(stage,id,ind){
       if (ind==INDEX) return false;
       return true;
    });

where INDEX - index of column which need to be made readonly.