Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jiffy on Apr 04, 2008 00:07
open dhtmlx forum
Lock a column

Is there a way to lock a column via js or xml or both?
Answer posted by Support on Apr 04, 2008 01:57
What do you mean by "lock" column?

If you want to lock column position - you can use split mode
    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/frozen_columns/pro_grid_split.html?un=1207300245000

If you want to lock edit operations for column, it can be done with next code
    mygrid.attachEvent("onEditCell",function(stage,id,ind){
       if (ind==SOME)
          return false;
       return true;
    });
where SOME - index of column in question.