<?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: Cannot select row after unselecting it</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it</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/cannot-select-row-after-unselecting-it/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ChrisXa on Cannot select row after unselecting it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25607</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25607</guid>
        	        	<description><![CDATA[<p>Thanks for your suggestion. I am currently using my fix as describe above, which works quite fine for me. Is there any reason why I should use the timeout instead of the fix? That doesn&#39;t look like clean code.</p>
</p>
<p>Regards,</p>
</p>
<p>Chris</p>
]]></description>
        	        	<pubDate>Thu, 05 Jan 2012 18:57:36 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Cannot select row after unselecting it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25600</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25600</guid>
        	        	<description><![CDATA[<p>This is not correct using.</p>
<p>Try:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8353' value='Select Code' data-codeid='sfcode8353' /></p>
<div class='sfcode' id='sfcode8353'>
<p>onSelectRow: function (rowid, selected) {<br />&#160;&#160;&#160; if (selected) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do stuff, load content to other divs<br />&#160;&#160;&#160; } else {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; setTimeout( function() {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.resetSelection(rowid);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }, 100);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // remove other divs<br />&#160;&#160;&#160; }<br />}</p>
</div>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 05 Jan 2012 13:06:53 +0200</pubDate>
        </item>
        <item>
        	<title>ChrisXa on Cannot select row after unselecting it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25584</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25584</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I am calling resetSelection when unselecting the row. Here is my onSelectRow function:</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function (rowid, selected) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (selected) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // do stuff, load content to other divs<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.resetSelection(rowid);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // remove other divs<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>However, selected is only true the first time I click the row. After unselecting the row, selected is always false until I select another row.</p>
</p>
<p>Best regards,</p>
</p>
<p>Chris</p>
]]></description>
        	        	<pubDate>Wed, 04 Jan 2012 18:02:35 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Cannot select row after unselecting it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25572</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25572</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for this, but my question is?</p>
<p>How you unselect the row?</p>
<p>Usually you should implement resetSelection which set the selected row to null.</p>
<p>All other cases are a custom resets where you will need to set the selarrrow to null manually too.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 03 Jan 2012 13:45:11 +0200</pubDate>
        </item>
        <item>
        	<title>ChrisXa on Cannot select row after unselecting it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25571</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cannot-select-row-after-unselecting-it#p25571</guid>
        	        	<description><![CDATA[<p>Hi everyone,</p>
</p>
<p>when selecting a row and unselecting it (not in multiselect mode), the row cannot be selected again. The problem is, that the grid internally still stores the unselected row as selrow and thus prevents me from selecting it again.</p>
</p>
<p>The solution is to reset selrow when unselecting a row. I fixed this here: <a href="https://github.com/ChrisXa/jqGrid/commit/d62b8fdf9090f23c63926042a180aed420a9db0f" rel="nofollow" target="_blank">https://github.com/ChrisXa/jqGrid/commit/d62b8fdf9090f23c63926042a180aed420a9db0f</a></p>
</p>
<p>Best regards,</p>
</p>
<p>Chris</p>
]]></description>
        	        	<pubDate>Tue, 03 Jan 2012 13:10:21 +0200</pubDate>
        </item>
</channel>
</rss>