<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: How to load json data in jqgrid pagewise?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-load-json-data-in-jqgrid-pagewise</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/how-to-load-json-data-in-jqgrid-pagewise/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ankitjha on How to load json data in jqgrid pagewise?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-load-json-data-in-jqgrid-pagewise#p28797</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-load-json-data-in-jqgrid-pagewise#p28797</guid>
        	        	<description><![CDATA[<p>Hi experts,<br />&#160;<br />How to load data in jqGrid pagewise? For example if I have 100000 json records which I need to load in the jqGrid but not all at once because it takes a lot of time. So, I want to load first 500 records at first load of page. And then next 500..next 500 and so on. Could you please give a sample code.Here is the code I am using</p>
</p>
<p>$.ajax({                     type: "GET",                     url: "http://pro-db1:8090/SimulatorUIService/SimulatorDataService.svc/CISLOCATIONDATAs",                     dataType: "json",                     data: {},                     processdata: true,                     crossDomain: true,                     async: true,                     success: function (result) {                         $("#jqGrid").jqGrid(                         {                              datatype: &#39;local&#39;,                             data: result.d,                             page: 1,                             colNames: colNames,                             colModel: colModel,                             onSelectRow: function (id) { rowselectdata(id); },                             pager: &#39;#pager&#39;,                             viewrecords: true,                             caption: gridCaption,                             gridview: false,                             loadui: "enable",                             rowNum: pageSize,                             loadonce: false                         });                         jQuery("#jqGrid").jqGrid(&#39;navGrid&#39;, &#39;#pager&#39;, { edit: false, add: false, del: false });                         jQuery("#jqGrid").jqGrid(&#39;filterToolbar&#39;);                         jQuery("#jqGrid").setGridParam().trigger(&#39;reloadGrid&#39;);                     },                      error: function (a, b, c) {                          alert(a);                     }                  });</p>
</p>
<p>&#160;<br />Thanks in advance</p>
<p>Ankit</p>
]]></description>
        	        	<pubDate>Wed, 15 May 2013 10:48:23 +0300</pubDate>
        </item>
</channel>
</rss>