Is there a method to lock an entire grid?
For forms, there is this:
form.lock()
and form.unLock()
Is there a way to lock a grid?
Is there a method to lock an entire grid?
For forms, there is this:
form.lock()
and form.unLock()
Is there a way to lock a grid?
Hi,
blocks line editing and prevents changing check box try this
myGrid.attachEvent("onEditCell", function(rId,colInd){//blocks line editing and prevents changing check box
return false;
});
Yeah, but the header and the filters can still be fiddled with. I want to completely lock the grid, like I can lock a form.
Unfortunately there is no such method to block all grid’s actions.
You will have to block each operation separately using the appropriate event.
For example:
mygrid.attachEvent("onResize", function(cInd,cWidth,obj){return false}); // block the resizing of the columns
mygrid.enableResizing("false,false,false..."); // the same one but using API
mygrid.attachEvent("onBeforeSorting", function(ind,type,direction){return false}); // block the sorting
mygrid.attachEvent("onBeforeSelect", function(new_row,old_row){return false}); // block the selecting