jquery - How to suppress jqgrid from initially loading data? -
I have a jqgrid in a modal popup in which the data is dependent on some input. I am showing the grid url options popups below based on input like:
$ (container grid grid) .setGridParam ({url: urlGetContainers + 'CRALineId =' + CurrentCRALineId}). Reload grid ();
When the grid is first loaded on the screen, it is not being displayed and does not need to recover the data until the modal popup is shown. Unfortunately, jqgrid still tries to request data based on its url option.
I have initially tried to use the hiddengrid property to hide / shrink the grid, which also keeps it from requesting it does not work for the data, however, because it shows me the grid There was no programmatic way to expand / expand
Is there a way to suppress jqgrid by initially loading data?
Start your grid in the 'show' event of the modal popup. You can dynamically generate jqGrid and insert it into the DOM, and then you can tie the data late by using the normal initialization code.
Comments
Post a Comment