Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Definelife on Dec 24, 2009 06:24
open dhtmlx forum
Disable grid object for user input

Dear support ,

How can I disable a grid object for tthe user input?

Thanks in advanced,
Answer posted by dhxSupport on Dec 28, 2009 02:04
You can manage grid editability with setEditable() method:

//set grid editable
mygrid.setEditable(true);
//set grid not editable
mygrid.setEditable(false);

Answer posted by Definelife on Jan 04, 2010 05:40

Thank you.

It works ok but how can I disable row change? I do not want that user can click on the different row when screen is busy with record update.

Thanks in advanced,

Answer posted by Stanislav (support) on Jan 04, 2010 07:49
var selectable = true;
grid.attachEvent("onBeforeSelect",function(){ return selectable; })

now you can use 
selectable  = false;
to block selection in grid, and next one to restore it
selectable = true;