<?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: Page issue with data ype : local</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/page-issue-with-data-ype-local</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/page-issue-with-data-ype-local/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>cynthu on Page issue with data ype : local</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/page-issue-with-data-ype-local#p18653</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/page-issue-with-data-ype-local#p18653</guid>
        	        	<description><![CDATA[<p>Adding the following fixes the issue:</p>
</p>
<p>$(".ui-pg-selbox").change();</p>
</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Sun, 18 Jul 2010 10:41:35 +0300</pubDate>
        </item>
        <item>
        	<title>cynthu on Page issue with data ype : local</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/page-issue-with-data-ype-local#p18651</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/page-issue-with-data-ype-local#p18651</guid>
        	        	<description><![CDATA[<p>Hi All,</p>
</p>
<p>Thanks for the great product. I am very new to jQuery Grid and was able to understand about the jQuery Grid by reading&#160;the demo and&#160;examples from url: /blog/jqgrid/jqgrid.html</p>
</p>
<p>I created a simple code which loads the data from local array. When I try to set the navigator with page, it does not&#160;work correct first time when it loads the grid. It loads and displays all the data from the array even though I have the row limit per page is set to 5.</p>
</p>
<p>Could you please let me know how to solve this issue?</p>
</p>
<p>Thanks in advance,</p>
<p>Cynthia.</p>
<p>function loadData() {<br />&#160;jQuery("#mylocallist").jqGrid({<br />&#160;&#160;datatype: "local",<br />&#160;&#160;height: 150,<br />&#160;&#160;colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;&#160;colModel:[<br />&#160;&#160;&#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:60, sorttype:"int"},<br />&#160;&#160;&#160;{name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90, sorttype:"date"},<br />&#160;&#160;&#160;{name:&#39;name&#39;,index:&#39;name&#39;, width:100},<br />&#160;&#160;&#160;{name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",sorttype:"float"},<br />&#160;&#160;&#160;{name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",sorttype:"float"},&#160;&#160;<br />&#160;&#160;&#160;{name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right",sorttype:"float"},&#160;&#160;<br />&#160;&#160;&#160;{name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false}&#160;&#160;<br />&#160;&#160;],<br />&#160;&#160;multiselect: true,<br />&#160;&#160;caption:"Local Data&#160;Test",<br />&#160;&#160;rowNum:5,<br />&#160;&#160;rowList:[5,10,20,50],<br />&#160;&#160;viewrecords: true, <br />&#160;&#160;loadonce: false,&#160; // tried true value too<br />&#160;&#160;pager: jQuery(&#39;#colch&#39;),<br />&#160;&#160;pginput:true,pgbuttons:true <br />&#160;});<br />&#160;<br />&#160;$(&#39;#mylocallist&#39;).jqGrid(&#39;navGrid&#39;, &#39;#colch&#39;,{add:false,edit:false,del:false,search:true,refresh:false}); <br />&#160;$(&#39;#mylocallist&#39;).jqGrid(&#39;gridResize&#39;, { minWidth: 400, maxWidth: 1200, minHeight: 25, maxHeight: 30, alsoResize:&#39;.resize&#39; });</p>
<p>&#160;var mydata = [<br />&#160;&#160;&#160;{id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />&#160;&#160;&#160;{id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />&#160;&#160;&#160;{id:"3",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},<br />&#160;&#160;&#160;{id:"4",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />&#160;&#160;&#160;{id:"5",invdate:"2007-10-05",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />&#160;&#160;&#160;{id:"6",invdate:"2007-09-06",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},<br />&#160;&#160;&#160;{id:"7",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />&#160;&#160;&#160;{id:"8",invdate:"2007-10-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />&#160;&#160;&#160;{id:"9",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},<br />&#160;&#160;&#160;{id:"10",invdate:"2007-05-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"4230.00"},<br />&#160;&#160;&#160;{id:"11",invdate:"2007-10-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"3220.00"},<br />&#160;&#160;&#160;{id:"12",invdate:"2007-07-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"4310.00"},<br />&#160;&#160;&#160;{id:"13",invdate:"2007-11-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"3210.00"}<br />&#160;&#160;&#160;];<br />&#160;&#160;&#160;<br />&#160;for(var i=0;i&#60;=mydata.length;i++)<br />&#160;&#160;jQuery("#mylocallist").jqGrid(&#39;addRowData&#39;,i+1,mydata[i]);<br />}</p>
</p>
<p>&#60;table id="mylocallist"&#62;&#60;/table&#62;<br />&#60;div id="colch"&#62;&#60;/div&#62;</p>
</p>
<p>It is shows the " Page 1 of 0 " and when I select 10 from the dropdown, it updates the grid with 10 rows. I want to display the data in the grid based on the page row limit.</p></p>
]]></description>
        	        	<pubDate>Sun, 18 Jul 2010 05:49:25 +0300</pubDate>
        </item>
</channel>
</rss>