<?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: After upgrading to 3.5.3 from 3.4.2 reload stops working</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-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/after-upgrading-to-353-from-342-reload-stops-working/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>RobGMiller on After upgrading to 3.5.3 from 3.4.2 reload stops working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-working#p9644</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-working#p9644</guid>
        	        	<description><![CDATA[<p>Even better, thanks Tony.</p>
]]></description>
        	        	<pubDate>Sat, 12 Sep 2009 07:43:24 +0300</pubDate>
        </item>
        <item>
        	<title>tony on After upgrading to 3.5.3 from 3.4.2 reload stops working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-working#p9632</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-working#p9632</guid>
        	        	<description><![CDATA[<p>Hello Rob,</p>
<p>You can simple (as described in grid options) whitout using any event</p>
<p>jQuery("#mygrid").jqGrid({</p>
<p>...</p>
<p>postData: { un: &#8220;x&#8221;, ci: &#8220;y&#8221;, pll: &#8220;z&#8221; },</p>
<p>...</p>
<p>});</p>
<p>This will apend the items to postdata array</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 11 Sep 2009 12:44:18 +0300</pubDate>
        </item>
        <item>
        	<title>RobGMiller on After upgrading to 3.5.3 from 3.4.2 reload stops working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-working#p9630</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-working#p9630</guid>
        	        	<description><![CDATA[<p>The answer to my question is:</p>
</p>
<p>there is an event that runs before the first request. It is named appropriately enough,&#160;beforeRequest:</p>
</p>
<p>I called appendPostData in that event process to add the required variables.&#160;</p>
</p>
<p>$(&#8221;#gridName&#8221;).appendPostData({ un: &#8220;x&#8221;, ci: &#8220;y&#8221;, pll: &#8220;z&#8221; });</p>
</p>
<p>This is a much more efficient way of controlling the dataset on first load.&#160;</p>
</p>
<p>I found its definition in the jqGrid Wiki event section. The wiki is not complete yet but seems to include newly added functionality.&#160;</p>
</p>
<p>Thank you Tony for adding this event.</p></p>
]]></description>
        	        	<pubDate>Fri, 11 Sep 2009 12:09:09 +0300</pubDate>
        </item>
        <item>
        	<title>RobGMiller on After upgrading to 3.5.3 from 3.4.2 reload stops working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-working#p9623</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/after-upgrading-to-353-from-342-reload-stops-working#p9623</guid>
        	        	<description><![CDATA[<p>After upgrading to 3.5.3 from 3.4.2 $("#gridName").trigger("reloadGrid") stopped working from the function called on LoadComplete but&#160;$("#gridName").trigger("reloadGrid") works from a button on the page once the grid is loaded.&#160;</p>
</p>
<p>The grid is loaded via json fed from a url. The server gets the initial request on load but never gets the second reload fired on loadComplete.&#160;</p>
</p>
<p>&#160;&#160; &#160;$("#gridName").jqGrid({</p>
<p>&#160;&#160; &#160; &#160; &#160;url: &#39;WSGridGetJson.aspx&#39;,</p>
<p>&#160;&#160; &#160; &#160; &#160;datatype: "json",&#160;</p>
<p>&#160;&#160; &#160; &#160; &#160;mtype: &#39;POST&#39;, ..........</p>
</p>
<p>I&#39;ve traced the process to grid.base.js line 588</p>
</p>
<p><span> </span>populate = function () {</p>
<p>&#160;&#160; &#160; if(!ts.grid.hDiv.loading) { ...</p>
</p>
<p>It appears that populate will only happen if the grid is not loading and I assume that loadComplete is part of the loading process. This must have been different in version 3.4.2.&#160;</p>
</p>
<p>Can I clear the loading flag from on loadComplete process. If so, how and what might be the reprecussions of such a change is standard process? Can PostData be set before the grid is created in verison 3.5.3. ( I believe this method of shaping grid data was devised back in version 3.1, perhaps the process has changed since then)</p>
</p>
<p>The grid is reloaded on loadComplete to set PostData to variables acquired after the page containing the grid is created to control the loaded data set.&#160;</p>
</p>
<p>Called from on loadComplete function.</p>
<p>&#160;&#160; &#160; &#160; &#160;$("#gridName").setPostData({ un: "x", ci: "y", pll: "z" });</p>
</p>
<p>&#160;&#160; &#160; &#160; &#160;$("#gridName").trigger("reloadGrid");</p>
<div></div>
<div></div>
</p>
<div></div>
]]></description>
        	        	<pubDate>Fri, 11 Sep 2009 11:16:40 +0300</pubDate>
        </item>
</channel>
</rss>