<?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: gridComplete fires before row select with refreshstate:'current'</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridcomplete-fires-before-row-select-with-refreshstatecurrent</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/bugs/gridcomplete-fires-before-row-select-with-refreshstatecurrent/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Schu on gridComplete fires before row select with refreshstate:'current'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridcomplete-fires-before-row-select-with-refreshstatecurrent#p10400</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridcomplete-fires-before-row-select-with-refreshstatecurrent#p10400</guid>
        	        	<description><![CDATA[<p><span lang="EN-US">Hi Tony,</span></p>
<p><span lang="EN-US">You are right, but in this scenario there is no chance to determine if you are going to select any record or not. Maybe the solution could be to always select &#39;current&#39; or &#39;first&#39; record in the grid if refreshstate is set to &#39;current&#39;.</span></p>
<p><span lang="EN-US">What do you think?</span></p>
<p><span lang="EN-US">In my case I just want to have one row selected either current or first after grid load/refresh. Before I turn on multiselect option this wasn&#39;t a problem because I selected first record in gridComplete event then grid select current after 1s delay. Right now after refresh I get 2 selected rows.</span></p>
<p><span lang="EN-US">There is no event I can handle to catch this kind of grid selection change, neither grid option I can get previously selected rows and omit my own selection.</span></p>
<p><span lang="EN-US">&#160;</span></p>
<p>Thanks, Schu</p>
]]></description>
        	        	<pubDate>Mon, 05 Oct 2009 04:42:42 +0300</pubDate>
        </item>
        <item>
        	<title>tony on gridComplete fires before row select with refreshstate:'current'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridcomplete-fires-before-row-select-with-refreshstatecurrent#p10396</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridcomplete-fires-before-row-select-with-refreshstatecurrent#p10396</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>As of the docs:</p>
<p>refreshstate - "Determines how to grid should be reloaded - &#39;firstpage&#39; - the grid reload the data from the first page. &#39;current&#39; the reloading should save the current page and current selection"</p>
<p>So we trigger a grid and then AFTER DELAY we use a setSelection to restore the selection in grid.</p>
<p>setSelection is just a method to select/deselect row, gridComplete fire after all the processing.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 05 Oct 2009 02:52:07 +0300</pubDate>
        </item>
        <item>
        	<title>Schu on gridComplete fires before row select with refreshstate:'current'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridcomplete-fires-before-row-select-with-refreshstatecurrent#p10386</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridcomplete-fires-before-row-select-with-refreshstatecurrent#p10386</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I execute select record in gridComplete event when grid is loaded with no records selected, but with refreshstate:&#39;current&#39; the grid select previously selected record after gridComplete is fired. So with multiselect option true I finish grid setup with 2 records selected.</p>
<p>I think gridComplete event should be executed at the end of grid setup/refresh process so after record selection.</p>
<p>What do you think?</p>
<p>Schu</p>
]]></description>
        	        	<pubDate>Sun, 04 Oct 2009 15:05:50 +0300</pubDate>
        </item>
</channel>
</rss>