<?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: How to asynchrously update jqgrid pgtext</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-asynchrously-update-jqgrid-pgtext</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/how-to-asynchrously-update-jqgrid-pgtext/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>iski.wang on How to asynchrously update jqgrid pgtext</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-asynchrously-update-jqgrid-pgtext#p29028</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-asynchrously-update-jqgrid-pgtext#p29028</guid>
        	        	<description><![CDATA[<p>I am using jqgrid to display a very large data set. Since the query  to get the total number of record count takes a long time. I am trying  to see if I can fire a separate ajax call to get the total count and then update  the recordcount and total page number after the grid is rendered with  the first result data set.</p>
<p>I am able to update the total record count by using</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit9257' value='Select Code' data-codeid='sfcode9257' /></p><div class='sfcode' id='sfcode9257'>$("#list").jqGrid(&#39;setGridParam&#39;, { recordtext: "View {0} - {1}" + " of " + datacount}).trigger("reloadGrid");</div></pre>
<p>However I am not able to update the totalpage with the code below:</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit3525' value='Select Code' data-codeid='sfcode3525' /></p><div class='sfcode' id='sfcode3525'>$("#list").jqGrid(&#39;setGridParam&#39;, { pgtext: "page {0} of {1}" + " of " + totalPage}).trigger("reloadGrid");</div></pre>
<p>Anything wrong in the code above? Thank you so much for the help! I really appreciate it!</p>
]]></description>
        	        	<pubDate>Tue, 18 Jun 2013 20:59:04 +0300</pubDate>
        </item>
</channel>
</rss>