<?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: Fire onSelectRow when row is deselected even if multiselect is false</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/fire-onselectrow-when-row-is-deselected-even-if-multiselect-is-false</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/feature-request/fire-onselectrow-when-row-is-deselected-even-if-multiselect-is-false/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>SyBorg on Fire onSelectRow when row is deselected even if multiselect is false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/fire-onselectrow-when-row-is-deselected-even-if-multiselect-is-false#p21760</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/fire-onselectrow-when-row-is-deselected-even-if-multiselect-is-false#p21760</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>first of all thanks for this great jquery plugin!</p>
<p>I have a page with a small form before a jqGrid, which is filled when a row is clicked</p>
<p>[Image Can Not Be Found]</p>
<p>I need to blank out the form when a row is deselected, so it can be used to quickly enter a new record</p>
<p>I have modified the else statement in grid.base.js, line 2423 as:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8506' value='Select Code' data-codeid='sfcode8506' /></p>
<div class='sfcode' id='sfcode8506'>
<p>} else {</p>
<p style=&#34;padding-left: 30px;&#34;>$t.p.selrow = null;</p>
<p style=&#34;padding-left: 30px;&#34;>if( $t.p.onSelectRow &#38;&#38; onsr) { $t.p.onSelectRow.call($t,$t.p.selrow, false); }</p>
<p style=&#34;padding-left: 30px;&#34;>}</p>
</div>
<p>this way I can do:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1815' value='Select Code' data-codeid='sfcode1815' /></p>
<div class='sfcode' id='sfcode1815'>
<p>onSelectRow: function(id) {</p>
<p style=&#34;padding-left: 30px;&#34;>if ( id ) {</p>
<p style=&#34;padding-left: 60px;&#34;>$(&#34;#formArea&#34;).load(&#34;/tavole/prodotti/formRichiesta?id=${prodotto.id}&#38;richiesta=&#34;+id);</p>
<p style=&#34;padding-left: 60px;&#34;>var mod = $(&#39;#tabRichieste&#39;).getUserData()[id];</p>
<p style=&#34;padding-left: 60px;&#34;>if (mod == true)</p>
<p style=&#34;padding-left: 60px;&#34;>$(&#39;#btn_elimina_riga&#39;).show()</p>
<p style=&#34;padding-left: 90px;&#34;>else</p>
<p style=&#34;padding-left: 60px;&#34;>$(&#39;#btn_elimina_riga&#39;).hide()</p>
<p style=&#34;padding-left: 30px;&#34;>}</p>
<p style=&#34;padding-left: 30px;&#34;>else</p>
<p style=&#34;padding-left: 60px;&#34;>$(&#34;#formArea&#34;).load(&#34;/tavole/prodotti/formRichiesta?id=${prodotto.id}&#34;)</p>
</div>
<p>(the weird ${prodotto.id} instructions are there because I&#39;m using turbogears with mako templates)</p></p>
]]></description>
        	        	<pubDate>Thu, 20 Jan 2011 12:08:11 +0200</pubDate>
        </item>
</channel>
</rss>