I want to lock & unlock my jqGrid in page, but why it doesn't work: following shows how I do it now
$("#myGridName").attr('disabled', true);
$("#myGridName").attr('disabled', false);
does anyone can help me, thanks!
Sorry for my poor english……
I want to lock & unlock my jqGrid in page, but why it doesn't work: following shows how I do it now
$("#myGridName").attr('disabled', true);
$("#myGridName").attr('disabled', false);
does anyone can help me, thanks!
Sorry for my poor english……
You don't clear define what you mean under "Lock" or "Unlock" if the jqGrid? Probably what you want is to block jqGrid during it loads the data from the server. In the case you can use the following option
loadui: "block"
If you need to block some more GUI elements on the page as the grid itself you can use blockUI plugin for example like Frédéric Hamidi mentioned you in his comment. See here and here some examples.
Alternatively you can just create a div having "ui-widget-overlay" class (see here) and show it over the part of the page which you want to block (see here).