<?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: Pager Buttons not working</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working</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/pager-buttons-not-working/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p31190</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p31190</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>Thanks for the feedback.</p>
<p>Â </p>
<p>Kind Regards</p>
]]></description>
        	        	<pubDate>Fri, 03 Oct 2014 13:29:45 +0300</pubDate>
        </item>
        <item>
        	<title>mrkarthick14 on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p31169</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p31169</guid>
        	        	<description><![CDATA[<p>Fixed by adding "records" in jqgrid json data</p>
]]></description>
        	        	<pubDate>Wed, 01 Oct 2014 12:48:09 +0300</pubDate>
        </item>
        <item>
        	<title>mrkarthick14 on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p31161</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p31161</guid>
        	        	<description><![CDATA[<p>I have the same issue. But i did not change those json names.. How to fix it ?</p>
]]></description>
        	        	<pubDate>Fri, 26 Sep 2014 16:56:58 +0300</pubDate>
        </item>
        <item>
        	<title>Lonewolf217 on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30152</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30152</guid>
        	        	<description><![CDATA[<p>can you clarify the question, it is far too vague right now to give a proper answer. &#160;You may also want to start a new thread if it is unrelated to the current problem</p>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 22:41:17 +0200</pubDate>
        </item>
        <item>
        	<title>dwschulze on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30151</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30151</guid>
        	        	<description><![CDATA[<p>Changing the JSON names back to defaults solved it. &#160;Thanks for your help.</p>
</p>
<p>Where in the docs do I look for assigning class attributes to &#60;th&#62;, &#60;tr&#62;, &#60;td&#62; elements?</p>
</p>
<p>Thanks again.</p></p>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 22:39:33 +0200</pubDate>
        </item>
        <item>
        	<title>Lonewolf217 on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30149</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30149</guid>
        	        	<description><![CDATA[</p>
<p>I see that you are trying to customize which items to use in the response</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9586' value='Select Code' data-codeid='sfcode9586' /></p>
<div class='sfcode' id='sfcode9586'>
<p>page: &#34;currentPage&#34;,</p>
<p>total: &#34;totaPages&#34;,</p>
<p>records: &#34;totalRecords&#34;,</p>
</div>
<p>I tried it on my setup and it doesn&#39;t seem to be working for me. &#160;the pagers are greyed out. &#160;Can you try using the default parameters by removing the above lines from your jqgrid config and then sending the response back with the json constructed like this ?</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7609' value='Select Code' data-codeid='sfcode7609' /></p>
<div class='sfcode' id='sfcode7609'>{&#34;<strong>page</strong>&#34;:&#34;2&#34;,&#34;<strong>total</strong>&#34;:11,&#34;<strong>records</strong>&#34;:&#34;110&#34;,&#34;rows&#34;:</div>
<p>Unless you have a good reason to require renaming the default parameters in the response ?</p>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 22:23:56 +0200</pubDate>
        </item>
        <item>
        	<title>dwschulze on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30148</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30148</guid>
        	        	<description><![CDATA[<p>The number of rows is coming back. &#160;It shows up in the lower right corner. &#160;Sorry I can&#39;t post an image on this forum software, but the total number of records shows up as well as the correct record enumeration for the current page.</p>
</p>
<p>The text control works if I type in a new page number followed by Enter. &#160;It&#39;s just the buttons that dont work.</p>
</p>
<p>Here&#39;s the JSON&#160;</p>
</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit2246' value='Select Code' data-codeid='sfcode2246' /></p><div class='sfcode' id='sfcode2246'>{&#34;currentPage&#34;:2,&#34;totalPages&#34;:3,&#34;totalRecords&#34;:18,&#34;products&#34;:[{&#34;invid&#34;:49411615,&#34;serialNumber&#34;:&#34;2173J244SP&#34;,&#34;sONumber&#34;:&#34;5137269&#34;,&#34;partNumber&#34;:&#34;59701-32&#34;,&#34;desc&#34;:&#34;Kit - Receiver, Dual Autonomous/SBAS/DGPS GPS-only, MS992, Carry Case, GCS&#34;,&#34;shippedDate&#34;:null,&#34;soldDate&#34;:null,&#34;status&#34;:&#34;Awaiting Validation&#34;},{&#34;invid&#34;:49411616,&#34;serialNumber&#34;:&#34;2173j235sp&#34;,&#34;sONumber&#34;:&#34;5137269&#34;,&#34;partNumber&#34;:&#34;59701-32&#34;,&#34;desc&#34;:&#34;Kit - Receiver, Dual Autonomous/SBAS/DGPS GPS-only, MS992, Carry Case, GCS&#34;,&#34;shippedDate&#34;:null,&#34;soldDate&#34;:null,&#34;status&#34;:&#34;Awaiting Validation&#34;},{&#34;invid&#34;:49411617,&#34;serialNumber&#34;:&#34;2173j259sp&#34;,&#34;sONumber&#34;:&#34;5137269&#34;,&#34;partNumber&#34;:&#34;59701-32&#34;,&#34;desc&#34;:&#34;Kit - Receiver, Dual Autonomous/SBAS/DGPS GPS-only, MS992, Carry Case, GCS&#34;,&#34;shippedDate&#34;:null,&#34;soldDate&#34;:null,&#34;status&#34;:&#34;Awaiting Validation&#34;},{&#34;invid&#34;:49411618,&#34;serialNumber&#34;:&#34;2173J582SP&#34;,&#34;sONumber&#34;:&#34;5137269&#34;,&#34;partNumber&#34;:&#34;59701-32&#34;,&#34;desc&#34;:&#34;Kit - Receiver, Dual Autonomous/SBAS/DGPS GPS-only, MS992, Carry Case, GCS&#34;,&#34;shippedDate&#34;:null,&#34;soldDate&#34;:null,&#34;status&#34;:&#34;Awaiting Validation&#34;},{&#34;invid&#34;:49411619,&#34;serialNumber&#34;:&#34;2173J606SP&#34;,&#34;sONumber&#34;:&#34;5137269&#34;,&#34;partNumber&#34;:&#34;59701-32&#34;,&#34;desc&#34;:&#34;Kit - Receiver, Dual Autonomous/SBAS/DGPS GPS-only, MS992, Carry Case, GCS&#34;,&#34;shippedDate&#34;:null,&#34;soldDate&#34;:null,&#34;status&#34;:&#34;Awaiting Validation&#34;},{&#34;invid&#34;:49411620,&#34;serialNumber&#34;:&#34;1956042675&#34;,&#34;sONumber&#34;:&#34;1042427&#34;,&#34;partNumber&#34;:&#34;63610-00&#34;,&#34;desc&#34;:&#34;Trimble Business Center Advanced - Dongle License&#34;,&#34;shippedDate&#34;:null,&#34;soldDate&#34;:null,&#34;status&#34;:&#34;Awaiting Validation&#34;}]}</div></pre>
<pre>I&#39;ve checked that it is valid json at http://www.freeformatter.com/json-validator.html.  The rows in the table contain the correct data.</pre>
<pre>It&#39;s just the buttons that don&#39;t work.</pre>
<pre></pre>
<pre>Adding "pgbuttons: true," didn&#39;t help</pre>
<pre></pre>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 22:16:12 +0200</pubDate>
        </item>
        <item>
        	<title>Lonewolf217 on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30145</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30145</guid>
        	        	<description><![CDATA[<p>Can you provide a sample json response as well ?</p>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 22:02:08 +0200</pubDate>
        </item>
        <item>
        	<title>dwschulze on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30143</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30143</guid>
        	        	<description><![CDATA[<p>Here&#39;s the code. &#160;I had to copy and past one line at a time because this forum software reverses line of code copied and pasted (first line of code last, last line of code first). &#160;This is the worst forum software I&#39;ve ever seen.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5914' value='Select Code' data-codeid='sfcode5914' /></p>
<div class='sfcode' id='sfcode5914'>
<p>$(&#34;#grid&#34;).jqGrid({</p>
<p>&#160; &#160; &#160;datatype: &#34;json&#34;,</p>
<p>url: &#34;/mtprest/Product/productByStatus?status=awaiting&#34;,</p>
<p>jsonReader : {</p>
<p>root:&#34;products&#34;,</p>
<p>page: &#34;currentPage&#34;,</p>
<p>total: &#34;totaPages&#34;,</p>
<p>records: &#34;totalRecords&#34;,</p>
<p>repeatitems: false,</p>
<p>id: &#34;0&#34;</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;},</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; pager: &#34;#pager&#34;,</p>
<p>colModel: [</p>
<p>...</p>
<p>],</p>
<p>rowNum: 6,</p>
<p>viewrecords: true</p>
<p>});</p>
<p>$(&#34;#grid&#34;).jqGrid(&#34;navGrid&#34;, &#34;#pager&#34;);</p>
</p>
</div>
<p><input type='button' class='sfcodeselect' name='sfselectit392' value='Select Code' data-codeid='sfcode392' /></p>
<div class='sfcode' id='sfcode392'>
</div>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 21:58:50 +0200</pubDate>
        </item>
        <item>
        	<title>Lonewolf217 on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30137</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30137</guid>
        	        	<description><![CDATA[<p>hard to tell without sample code and the json response, but i think i have seen this happen in a couple of cases</p>
<p>1) when I did not properly set the "records" count in &#160;the response. &#160;</p>
<p>2) when the "rowNum" attribute of the grid is set to nothing (ie &#39;&#39; ). &#160;You can set the rows attribute to a high number to work around this</p>
<p>In both cases though, the result is that the grid isn&#39;t able to calculate that multiple pages are available so the paging buttons are disabled.&#160;</p>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 20:31:46 +0200</pubDate>
        </item>
        <item>
        	<title>dwschulze on Pager Buttons not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30136</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-buttons-not-working#p30136</guid>
        	        	<description><![CDATA[<p>I&#39;ve got jqGrid set up to do AJAX calls. &#160;The initial page loads, but the pager buttons don&#39;t work. &#160;I can page by changing the page number in the text box and clicking Enter. &#160;An AJAX call gets made with the new page number and the new page of data displays properly. &#160;When I click on any of the pager buttons no AJAX call is made, however. &#160;The buttons seem to be disabled by default.</p>
<p>What do I have to do to get the pager buggons to work?</p>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 20:22:05 +0200</pubDate>
        </item>
</channel>
</rss>