<?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: Custom pager</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-pager</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/custom-pager/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>gowger on Custom pager</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16695</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16695</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>With the struts plugin I&#39;m using I had to give up on that approach and only use the jqgrid variables in click events because it uses the document.ready to load the grid. I ended up doing a bit of server side work to get the pages numbers for scripts. It&#39;s an extra server side count but it&#39;s not the worst case.</p>
</p>
<p>Thanks for your help!</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 14:40:39 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Custom pager</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16197</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16197</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Maybe you can do this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4321' value='Select Code' data-codeid='sfcode4321' /></p>
<div class='sfcode' id='sfcode4321'>
<p>$(&#39;#gridtable&#39;).jqGrid(&#39;getGridParam&#39;,&#39;url&#39;);</p>
</p>
</div>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 03 Apr 2010 15:57:55 +0300</pubDate>
        </item>
        <item>
        	<title>gowger on Custom pager</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16059</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16059</guid>
        	        	<description><![CDATA[<p>Ok I got it working using this function attached to onclick of my buttons. Apologies for the spurious post.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9269' value='Select Code' data-codeid='sfcode9269' /></p>
<div class='sfcode' id='sfcode9269'>&#160;&#160;&#160;&#160;&#160;&#160;&#160; function loadPage(thePage) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#34;#gridtable&#34;).jqGrid(&#39;setGridParam&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: thePage<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).trigger(&#34;reloadGrid&#34;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</div>
<p>But now I keep getting a $t is undefined when I try to retrieve any of the variables for the pages or anything else for that matter using</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6090' value='Select Code' data-codeid='sfcode6090' /></p>
<div class='sfcode' id='sfcode6090'>$(&#39;#gridtable&#39;).jqGrid.getGridParam(&#34;url&#34;);</div>
<p>or</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2989' value='Select Code' data-codeid='sfcode2989' /></p>
<div class='sfcode' id='sfcode2989'>jQuery(&#34;#gridtable&#34;).getGridParam(&#39;url&#39;)</div>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 14:52:13 +0300</pubDate>
        </item>
        <item>
        	<title>gowger on Custom pager</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16057</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16057</guid>
        	        	<description><![CDATA[<p>Ok i found one dumb mistake!</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2266' value='Select Code' data-codeid='sfcode2266' /></p>
<div class='sfcode' id='sfcode2266'>jQuery.(&#39;#gridtable&#39;).trigger(&#34;reloadGrid&#34;);</div>
<p>should be (no dot!) I also found that the $(&#39;#gridtable&#39;). ....&#160; version sisn&#39;t work, not sure why. too new to jquery. Maybe to do with the version included with the struts plugin.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8308' value='Select Code' data-codeid='sfcode8308' /></p>
<div class='sfcode' id='sfcode8308'>jQuery(&#39;#gridtable&#39;).trigger(&#34;reloadGrid&#34;);</div>
<p>but I haven&#39;t managed to setGridParam&#160; yet.</p></p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 11:54:23 +0300</pubDate>
        </item>
        <item>
        	<title>gowger on Custom pager</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16056</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-pager#p16056</guid>
        	        	<description><![CDATA[<p>Hi folks,</p>
</p>
<p>I&#39;ve been using jqGrid via the struts plugin and i&#39;m very impressed by the feature set and how quickly you get some great results. Unfortunately though my clients are sticklers about their design and don&#39;t want the pager buttons as they come with jqGrid and have quite a different design in mind.</p>
</p>
<p>I know this is probably very easy and a real n00b question but I&#39;m under a lot of time pressure and so haven&#39;t quite understood yet how to do this. All I need to know is what function I need to attach to my buttons onclick events to do the paging. I&#39;ve tried using this</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6122' value='Select Code' data-codeid='sfcode6122' /></p>
<div class='sfcode' id='sfcode6122'>&#60;a class=&#34;btn&#34; onclick=&#34;onPaging(&#39;next&#39;)&#34;&#62;Next&#60;/a&#62;</div>
</p>
<p>and this in a function:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit535' value='Select Code' data-codeid='sfcode535' /></p>
<div class='sfcode' id='sfcode535'>
<p>function loadPage() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery.(&#39;#gridtable&#39;).setGridParam({url:&#39;jsontable?accountid=15&#38;_=1269961651042&#38;_search=false&#38;nd=1269961651042&#38;rows=10&#38;page=2&#38;sidx=&#38;sord=asc&#39;});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery.(&#39;#gridtable&#39;).trigger(&#34;reloadGrid&#34;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;a class=&#34;btn&#34; onclick=&#34;loadPage()&#34;&#62;Next&#60;/a&#62;</p>
</div>
<p>but no ajax event is fired. I get a "XML filter is applied to non-XML value" when I try this. I&#39;m using a JSON data source.</p>
<p>Any pointers are greatly appreciated!</p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 11:32:07 +0300</pubDate>
        </item>
</channel>
</rss>