Any ideas why multiple calls to a function that does the following
grid.jqGrid('GridUnload');
createGrid();
Will only create the grid every other time, but …
The following will work everytime it is called:
grid.jqGrid('GridUnload');
setTimeout(createGrid, 1000);
You don’t included the code of
createGridso I can only guess. One possible reason is that you usegridvariable inside. If you useGridUnloadthe old<table>element will be deleted and another one will be created on the same place. So you should reset the value ofgridafter call ofGridUnload:The method
$.jgrid.jqIDyou have to use only if theidof the grid can hold some meta-character.