Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kunal on Jan 16, 2009 22:05
open dhtmlx forum
Dhtmlx Grid Column locking

Hi

There is provision to lock the whole row in dhtmlx grid using API
mygrid.lockRow(3,true);
So, the row having id 3 is become readonly(or lock for edit).

Is there any provision to lock column and single cell in grid?

-
Kunal



Answer posted by Support on Jan 19, 2009 01:42
For single cell

grid.cells(i,j).setDisabled(true);

For column, it can be achieved through event

grid.attachEvent("onEditCell",function(stage,id,ind){
      if (ind==INDEX) return false;
      return true;
});

where INDEX - index of column for which edit operation need to be blocked