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!
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
I also want my grid to display some un-editable multiline text fields (using Firefox).
It seems that the only way to do this is to make it an editable text box and then to include an excape function such as the ones listed above.
However when I use the function suggested, as soon as a key is pressed, all of the text in the cell disappears - leaving a blank cell.
Is there some way to stop the text from disappearing on the keypress?
Or - even better - is there a plan to add a new cell type to the the list of existing column types - (chamberlain-society.org/dhtmlx/d … types.html) - i.e. a RO Multi-line column type.
You can create any custom eXcell type you need. Please check more information here docs.dhtmlx.com/doku.php?id=dhtm … l_creation