<?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 exaple with jsondata.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata</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-exaple-with-jsondata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on pagination exaple with jsondata.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata#p1620</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata#p1620</guid>
        	        	<description><![CDATA[<p>How many number of rows return your server? - check this.</p>
<p>The portion of returned data should be controlled from server.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 20 Aug 2008 08:48:20 +0300</pubDate>
        </item>
        <item>
        	<title>sureshchatla on pagination exaple with jsondata.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata#p1617</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata#p1617</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>If you use local data type this is not possible.</p>
<p>If you use server side language you can control this via option</p>
<p>rowNum</p>
</blockquote>
<hr />
<p>I tried but still not working.</p>
<p>Here is my code:</p>
<p>jQuery("#navgrid").jqGrid({&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; &#160;&#160;&#160; url:&#39;&#60;s:url action="UserListAction" namespace="/user" &#62;&#60;/s:url&#62;&#39;,<br />&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160; height:300,<br />&#160;&#160;&#160; width:1500,<br />&#160;&#160; &#160;&#160;&#160; colNames:[&#39;User Name&#39;,&#39;First Name&#39;,&#39;Last Name&#39;,&#39;Phone&#39;,&#39;Fax&#39;,&#39;Role&#39;,&#39;Password&#39;,&#39;Customer Id&#39;],<br />&#160;&#160; &#160;&#160;&#160; colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userEmailAddress&#39;,index:&#39;userEmailAddress&#39;,editable:true,editoptions:{size:10}},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userFname&#39;,index:&#39;userFname&#39;,editable:true,editoptions:{size:10},width:80},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userLname&#39;,index:&#39;userLname&#39;,editable:true,editoptions:{size:10},width:80},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userPhone&#39;,index:&#39;userPhone&#39;,editable:true,editoptions:{size:10},width:70},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userFax&#39;,index:&#39;userFax&#39;,editable:true,editoptions:{size:10},width:70},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userRoles&#39;,index:&#39;userRoles&#39;,editable:true,edittype:"select",editoptions:{value:"10001:ROLE_RESELLER_SUPERVISOR;10002:ROLE_RESELLER_ADMIN;10003:ROLE_RESELLER_OPERATOR;10004:ROLE_CUSTOMER_SUPERVISOR;10005:ROLE_CUSTOMER_ADMIN;10006:ROLE_CUSTOMER_OPERATOR"}},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userPassword&#39;,index:&#39;userPassword&#39;,editable:true,editoptions:{size:10}},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;customerId&#39;,index:&#39;customerId&#39;,editable:false,editoptions:{size:10}}<br />&#160; &#160;&#160;&#160; ],<br />&#160;&#160; &#160;&#160;&#160; rowNum:5,<br />&#160;&#160; &#160;&#160;&#160; rowList:[5,10,15],<br />&#160;&#160; &#160;&#160;&#160; imgpath: gridimgpath,<br />&#160;&#160; &#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;&#160;&#160; root:"users",<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;&#160;&#160; page:"page",<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;&#160;&#160; total:"total",<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;&#160;&#160; records:"records",<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;&#160;&#160; repeatitems:false,<br />&#160;&#160;&#160;&#160; },<br />&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pagerde&#39;),<br />&#160;&#160; &#160;&#160;&#160; sortname: &#39;userEmailAddress&#39;,<br />&#160;&#160;&#160; caption:"User Management",<br />&#160;&#160;&#160; onPaging : function() { alert("I&#39;m executed before the request");},<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; editurl:&#39;&#60;s:url action="AddUserAction" namespace="/user" /&#62;&#39;<br />}).navGrid(&#39;#pagerde&#39;,{edit:false,add:false,del:false,search:false},{},{},{},{});</p>
]]></description>
        	        	<pubDate>Wed, 20 Aug 2008 05:53:30 +0300</pubDate>
        </item>
        <item>
        	<title>tony on pagination exaple with jsondata.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata#p1592</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata#p1592</guid>
        	        	<description><![CDATA[<p>If you use local data type this is not possible.</p>
<p>If you use server side language you can control this via option</p>
<p>rowNum</p>
]]></description>
        	        	<pubDate>Tue, 19 Aug 2008 11:39:23 +0300</pubDate>
        </item>
        <item>
        	<title>sureshchatla on pagination exaple with jsondata.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata#p1585</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pagination-exaple-with-jsondata#p1585</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>how to restrict rows in a page.</p>
<p>Pagination is not woking for me.</p>
<p>If possible, can you give me an example.</p>
]]></description>
        	        	<pubDate>Tue, 19 Aug 2008 06:28:53 +0300</pubDate>
        </item>
</channel>
</rss>