How to suppress jqgrid from initially loading data?
Posted
by Steve Johnston
on Stack Overflow
See other posts from Stack Overflow
or by Steve Johnston
Published on 2010-04-30T19:06:17Z
Indexed on
2010/04/30
21:57 UTC
Read the original article
Hit count: 296
I have a page that has a couple of jqGrids on it, along with a few other fields. I want to make one AJAX call myself that pulls back a JSON object that has the data that should be used to fill the entire page.
So, I would like to make the call myself, populate the "other fields" and then pull a couple of collections off of the main JSON object that was returned and populate each of the jqGrids with those collections "manually".
I have this much working, but I can't get jqGrid to stop attempting to make an AJAX request itself. Shouldn't there be a way to tell jqGrid to NOT attempt an AJAX call when it is initialized?
I found a similar question asked here: http://stackoverflow.com/questions/1850159/how-to-suppress-jqgrid-from-initially-loading-data
But I don't have the option that solved it for the poster.
It seems pretty logical to me that some people may want to use this plugin without having the table attempt to get its own data upon initialization. Am I missing an option somewhere in the documentation (wiki - options)?
Thanks.
© Stack Overflow or respective owner