<?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: onSelectRow not called on checkboxes (formatter:'checkbox')</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/onselectrow-not-called-on-checkboxes-formattercheckbox</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/onselectrow-not-called-on-checkboxes-formattercheckbox/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on onSelectRow not called on checkboxes (formatter:'checkbox')</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/onselectrow-not-called-on-checkboxes-formattercheckbox#p24268</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/onselectrow-not-called-on-checkboxes-formattercheckbox#p24268</guid>
        	        	<description><![CDATA[<p>Hi, Tony!</p>
<p>It seems that there are differences how different web browsers works with disabled elements. If you look at <a href="http://www.ok-soft-gmbh.com/jqGrid/SimpleLocalGridWithInlineEditingFocus.htm" target="_blank">the demo</a> in IE you you will be able to make double-click on the disabled checkbox. So the "click" event which I describe will be fired in IE in case of &#160;double-click. The seme demo in Chrome not works because Chrome don&#39;t call "click" event on disabled element.</p>
<p>So my suggestion can improve the situation a little, but not really solve it.</p>
<p>Best regards<br />Oleg</p>
<p>P.S. I am glad to see you back.&#160;</p>
]]></description>
        	        	<pubDate>Sun, 14 Aug 2011 13:00:48 +0300</pubDate>
        </item>
        <item>
        	<title>tony on onSelectRow not called on checkboxes (formatter:'checkbox')</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/onselectrow-not-called-on-checkboxes-formattercheckbox#p24266</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/onselectrow-not-called-on-checkboxes-formattercheckbox#p24266</guid>
        	        	<description><![CDATA[<p>Oleg,&#160;</p>
<p>Not sure I understand the demos here.</p>
<p>Allow click on disabled input element is maybe good idea.</p>
<p>Not sure what to do with the returns. Will make some experiments.</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 14 Aug 2011 12:53:06 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on onSelectRow not called on checkboxes (formatter:'checkbox')</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/onselectrow-not-called-on-checkboxes-formattercheckbox#p23823</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/onselectrow-not-called-on-checkboxes-formattercheckbox#p23823</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>if one try to implement inline editing on <strong>ondblClickRow</strong> one could recive strange problem: the <strong>onSelectRow</strong> event will not fired if the user click on the disabled checkbox created by <strong>formatter:&#39;checkbox&#39;</strong>. See <a href="http://www.ok-soft-gmbh.com/jqGrid/SimpleLocalGridWithInlineEditingFocus0.htm" target="_blank">the demo</a>. As a workaround one have to use <strong>beforeSelectRow</strong> instead of <strong>onSelectRow</strong> (see <a href="http://www.ok-soft-gmbh.com/jqGrid/SimpleLocalGridWithInlineEditingFocus.htm" target="_blank">the fixed demo</a>).</p>
<p>The problem make <a href="https://github.com/tonytomov/jqGrid/blob/v4.1.1/js/grid.base.js#L2211" target="_blank">the line 2211</a> of the grid.base.js:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9976' value='Select Code' data-codeid='sfcode9976' /></p>
<div class='sfcode' id='sfcode9976'>if (td.tagName == &#39;A&#39; &#124;&#124; ((td.tagName == &#39;INPUT&#39; &#124;&#124; td.tagName == &#39;TEXTAREA&#39; &#124;&#124; td.tagName == &#39;OPTION&#39; &#124;&#124; td.tagName == &#39;SELECT&#39; ) &#38;&#38; !scb) ) { return this; }</div>
<p>It seems to me in the line one should include additional test for <strong>td.disabled</strong>&#160;(or use :not(:disabled) selector). So one should do allow to select lines by clicking on the disabled inpit elements.</p>
<p>One more remark. Is it correct to use <strong>return this</strong> inside of click event handler (it is here and in <a href="https://github.com/tonytomov/jqGrid/blob/v4.1.1/js/grid.base.js#L2206" target="_blank">the another line</a> above)? One should not stop the event.</p>
</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Thu, 30 Jun 2011 21:26:18 +0300</pubDate>
        </item>
</channel>
</rss>