<?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: Prevent reloadGrid to empty the grid while waiting for remote request answer</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/prevent-reloadgrid-to-empty-the-grid-while-waiting-for-remote-request-answer</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/prevent-reloadgrid-to-empty-the-grid-while-waiting-for-remote-request-answer/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Prevent reloadGrid to empty the grid while waiting for remote request answer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/prevent-reloadgrid-to-empty-the-grid-while-waiting-for-remote-request-answer#p22577</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/prevent-reloadgrid-to-empty-the-grid-while-waiting-for-remote-request-answer#p22577</guid>
        	        	<description><![CDATA[<p>The old grid contain will be deleted inside of addJSONData internal function which will be called inside of $.ajax success handle.</p>
<p>Just for fun you can include in your jqGrid <strong>treeANode: -2</strong>&#160;parameter and reset the parameter <strong>treeANode</strong>&#160;to -2 one more time in the loadComplete:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9732' value='Select Code' data-codeid='sfcode9732' /></p>
<div class='sfcode' id='sfcode9732'>loadComplete: function(){<br />&#160;&#160; &#160;this.p.treeANode=-2;<br />}&#160;</div>
<p>You will see that the old grid contain will not deleted by jqGrid and new contain will be just appended to the grid on every grid refresh.</p>
<p>It is <strong>not the way</strong> which I recommend you! It is just for playing. It shows only how the grid work and that <a href="https://github.com/tonytomov/jqGrid/blob/master/js/grid.base.js#L1192" target="_blank">the place</a>&#160;is the only place where the grid contain will be deleted during refreshing.</p>
<p>If you grid work very slowly you should search for the problem <strong>in your code</strong>: For example: you don&#39;t use <strong>gridview:true</strong> jqGrid parameter or you use <strong>afterInsertRow</strong> event handle or you use any very slow actions inside of <strong>loadComplete</strong>/<strong>gridComplete</strong> event... I can continue.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 28 Mar 2011 14:27:40 +0300</pubDate>
        </item>
        <item>
        	<title>itkin on Prevent reloadGrid to empty the grid while waiting for remote request answer</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/prevent-reloadgrid-to-empty-the-grid-while-waiting-for-remote-request-answer#p22560</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/prevent-reloadgrid-to-empty-the-grid-while-waiting-for-remote-request-answer#p22560</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I&#39;d like to reload a grid with remote data as a background task, but it seems that the grid content is deleted before the ajax request is send.</p>
</p>
<p>Is there a simple way to update the grid content once the ajax request is complete,&#160; in order to minimize the &#39;refreshing&#39; time while the grid is empty ?</p>
</p>
<p>Thanks for your help !</p>
</p>
<p>itkin</p></p>
]]></description>
        	        	<pubDate>Sun, 27 Mar 2011 04:54:58 +0300</pubDate>
        </item>
</channel>
</rss>