views:

169

answers:

1

Hi!

How to disable autoload in jqGrid and load data manually when I need it?

Thanks.

+2  A: 

If you set datatype to 'local' the data from the server will be not loaded. To force the loading of data you can change datatype to 'json' or 'xml' with respect of setGridParam method (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options and http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods#grid_related_methods) and then call trigger("reloadGrid") method.

See http://stackoverflow.com/questions/2703369/jqgrid-is-not-loading-data/2703518#2703518 which has also the information what you asked.

Oleg
+1 flipping the datatype worked perfectly. thanks!
ongle