<?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: addJSONData after clearSearch in IE</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/addjsondata-after-clearsearch-in-ie</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/addjsondata-after-clearsearch-in-ie/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>HoSpiTaL_gHoSt on addJSONData after clearSearch in IE</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/addjsondata-after-clearsearch-in-ie#p10691</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/addjsondata-after-clearsearch-in-ie#p10691</guid>
        	        	<description><![CDATA[<p>Anyway, I solved my problem by not calling clearSearch anymore. Before it was necessary because I sorted my entire dataset on multiple columns, so I had to clear the search first. Now I just sort the search results on multiple columns, so this way I don&#39;t have to clear the search anymore.</p>
</p>
<p>I&#39;ve changed my method to sort on multiple columns to this:</p>
<p>function sortOnMultipleCols(){</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#grid&#39;).setGridParam({sortname:&#39;col1,col2,col3&#39;});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#grid&#39;).trigger(&#8221;reloadGrid&#8221;);</p>
<p>}</p>
]]></description>
        	        	<pubDate>Wed, 14 Oct 2009 04:47:10 +0300</pubDate>
        </item>
        <item>
        	<title>HoSpiTaL_gHoSt on addJSONData after clearSearch in IE</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/addjsondata-after-clearsearch-in-ie#p10689</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/addjsondata-after-clearsearch-in-ie#p10689</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I have a problem which only occurs in IE (I use jqgrid 3.5.3). I have a jqgrid which can be searched using a search inputfield and a searchbutton. I also have a button at the bottom of my page to sort the jqgrid on multiple columns.</p>
</p>
<p>When clicking that sort button,the first thing I have to do is call clearSearch, and then I do an ajax call to get my jqgrid data sorted, and i add that data to the grid using addJSONData. But in IE, when the sort button is clicked, first the values appear sorted in the grid, but immediately after that the grid data returns to its previous state. This only happens the first time after the page is loaded. When I click the sort button a second time, the data appears sorted in the grid as it should be.</p>
<p>I think this is because clearSearch also posts a call to the server to retrieve the data, but somehow in IE this call is executed after my own ajax call, even though I call clearSearch before my own ajax call.</p>
</p>
<p>function sortOnMultipleCols(){</p>
<p>&#160;&#160;&#160; sg[0].clearSearch();</p>
<p>&#160;&#160;&#160; //post ajax call to the server to retrieve the data sorted on multiple columns</p>
<p>&#160;&#160;&#160; //the result of this call =&#39;msg&#39;</p>
<p>&#160;&#160;&#160; $(&#39;#grid&#39;)[0].addJSONData(msg);<br />&#160;&#160;&#160; $(&#39;#grid&#39;).setGridParam({sortname:&#39;col1,col2,col3&#39;});</p>
<p>}</p>
</p>
<p>I&#39;m sorry if my explanation isn&#39;t very clear, please tell me if you need more information.</p>
<p>Thanks in advance for the help!</p>
]]></description>
        	        	<pubDate>Wed, 14 Oct 2009 02:53:25 +0300</pubDate>
        </item>
</channel>
</rss>