The default behaviour of the jqGrid control is that it starts loading your data if you open up your page. But what if you don’t want this? How can you prevent the jqGrid from autoloading?
We solved it by setting the datatype
to 'local'
. To force the loading of data afterwards, you can change datatype
to 'json'
or 'xml'
by using .jqGrid(‘setGridParam’,{datatype:’json’})
method and then call the trigger("reloadGrid")
method.