Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by M.L. on Sep 15, 2008 07:43
open dhtmlx forum
dhtmlxGrid: eXcell of type txt + ro ?


hello,

I need something like a multiline textarea with read-only capability!
is there a possibility to make a txt cell read-only? or do I have to create a new custom eXcell type?

thanks!
Answer posted by Support on Sep 15, 2008 09:57
You can try to use the following approach:

mygrid.attachEvent("onEditCell",function(stage,rowId,cInd){
if(cInd==INDEX && stage==1){
mygrid.editor.obj.onkeypress = function(e){
return false;
}
}
return true;
})
Where INDEX is the index of the "txt" column