<?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: Pagination not working with array data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/pagination-not-working-with-array-data</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/pagination-not-working-with-array-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>abhisheksimion on Pagination not working with array data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pagination-not-working-with-array-data#p23673</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pagination-not-working-with-array-data#p23673</guid>
        	        	<description><![CDATA[<p>This is my code, the data is getting displayed as it is without any pagination</p>
</p>
<pre class="default prettyprint"><p><input type='button' class='sfcodeselect' name='sfselectit7929' value='Select Code' data-codeid='sfcode7929' /></p><div class='sfcode' id='sfcode7929'>var filesystem=[];<br />$(xml).find(&#39;file&#39;).each(function(){&#160;<br />var row={};<br />row.total=$(this).attr(&#39;total&#39;);<br />row.free=$(this).attr(&#39;free&#39;);<br />row.used=$(this).attr(&#39;used&#39;);<br />row.percentage=$(this).attr(&#39;percentage&#39;);<br />filesystem.push(row);<br />});<br /><br /><br />$(&#39;#detailTable&#39;).empty();<br />$(&#39;&#60;div&#62;&#39;)<br />.attr(&#39;id&#39;,&#39;diskUsageSpan&#39;)<br />.html(&#39;&#60;divclass=&#34;titleBlue&#34;&#62;Configuration&#38;gt;System&#38;gt;Disk Usage&#60;/div&#62;&#39;+<br />&#39;&#60;table&#160;id=&#34;list1&#34;&#62;&#60;/table&#62;&#39;+<br />&#39;&#60;div&#160;id=&#34;gridpager&#34;&#62;&#60;/div&#62;&#39;+<br />&#39;&#60;/div&#62;&#39;)&#160; &#160; &#160; &#160;&#160;<br />.appendTo(&#39;#detailTable&#39;);&#160; &#160;&#160;<br /><br /><br /><br />jQuery(&#34;#list1&#34;).jqGrid({<br />datatype: &#34;local&#34;,<br />height: 250,<br />colNames:[&#39;Total Space&#39;,&#39;Free Space&#39;, &#39;Used Space&#39;, &#39;Used Percentage&#39;],<br />colModel:[<br />{name:&#39;total&#39;,index:&#39;total&#39;, width:90, align:&#34;right&#34;},<br />{name:&#39;free&#39;,index:&#39;free&#39;, width:90, align:&#34;right&#34;},<br />{name:&#39;used&#39;,index:&#39;used&#39;, width:90, align:&#34;right&#34;},<br />{name:&#39;percentage&#39;,index:&#39;percentage&#39;, width:120, align:&#34;right&#34;},<br />],<br />pager : &#39;#gridpager&#39;,<br />rowNum:10,<br />rowList:[10,20,30],<br />viewrecords: true,<br />gridview: true,<br />edit:false,<br />add:false,<br />del:false<br />});<br />for(var i=0;i&#60;=filesystem.length;i++)<br />jQuery(&#34;#list1&#34;).jqGrid(&#39;addRowData&#39;,i+1,filesystem[i]);<br /><br /></div></pre>
]]></description>
        	        	<pubDate>Sat, 18 Jun 2011 11:33:56 +0300</pubDate>
        </item>
</channel>
</rss>