<?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: exception in click event handler of the cell click</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-in-click-event-handler-of-the-cell-click</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/exception-in-click-event-handler-of-the-cell-click/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on exception in click event handler of the cell click</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-in-click-event-handler-of-the-cell-click#p25747</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/exception-in-click-event-handler-of-the-cell-click#p25747</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I had problems to create new pool request, because the old one already exists. So all new requests are placed (appended) in the same old pool request (see here). I don&#39;t know whether you can apply only one part from the request.</p>
<p>I posted last time many suggestions to jqGrid which could be interesting for you (in my opinion). Just now I posted <a href="/blog/?page_id=393/bugs/frozen-column-impressions/#p25746" target="_blank">the answer</a>&#160;which I recommend you to read. The fixes which I suggested in <a href="http://stackoverflow.com/a/8771429/315935" target="_blank">the answer</a> on the stackoverflow allows with some restriction use inline editing. I think it could be interesting for many jqGrid users.</p>
<p>Best regards<br />Oleg</p>
<p>P.S. Your comments to my last suggestion are very intresting for me. What you think about <a href="/blog/?page_id=393/bugs/errors-in-parsedate-method-with-f-m-and-j-formats/#p25721" target="_blank">this</a>, <a href="/blog/?page_id=393/bugs/some-problems-in-grid-filter-js-module/#p25672" target="_blank">this</a> and <a href="/blog/?page_id=393/bugs/some-bugs-in-position-of-frozen-dives/#p25541" target="_blank">this</a> bug reports and about <a href="/blog/?page_id=393/feature-request/make-disabled-checkbox-of-the-checkbox-formatter-clickable/#p25668" target="_blank">this</a>, <a href="/blog/?page_id=393/feature-request/introduce-rowattr-jqgrid-like-cellattr-but-for-setting-attributes-on-tr-element-instead-of-td/#p25555" target="_blank">this</a>, <a href="/blog/?page_id=393/feature-request/jquery-ui-compatible-version-of-jquery-contextmenu-js/#p25532" target="_blank">this</a>&#160;and&#160;<a href="/blog/?page_id=393/feature-request/save-selected-state-of-multiselect-rows-over-the-paging/#p25181" target="_blank">this</a>&#160;feature requests?</p>
]]></description>
        	        	<pubDate>Fri, 20 Jan 2012 18:38:53 +0200</pubDate>
        </item>
        <item>
        	<title>tony on exception in click event handler of the cell click</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-in-click-event-handler-of-the-cell-click#p25745</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/exception-in-click-event-handler-of-the-cell-click#p25745</guid>
        	        	<description><![CDATA[<p>Thanks Oleg,</p>
<p>I do not see it as Pull in GitHUb.</p>
<p>Instead I have apply the fix.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Jan 2012 18:27:35 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on exception in click event handler of the cell click</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/exception-in-click-event-handler-of-the-cell-click#p25731</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/exception-in-click-event-handler-of-the-cell-click#p25731</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I sent <a href="https://github.com/OlegKi/jqGrid/commit/3877603552b058d56fab404d36e34e69a45ff5d5" target="_blank">one more pool request</a>. It fixs the bug in the event handler of the&#160;<strong>click</strong>&#160;on the grid cell. The problem is that if the call has more complex structure and the <strong>onSelectRow</strong> callback calls <strong>editRow</strong> the exception can be fired.</p>
<p>One can reproduce the bug in IE on <a href="http://www.ok-soft-gmbh.com/jqGrid/Checkbox3_.htm" target="_blank">the demo</a>. Exception will be in <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/grid.base.js#L37" target="_blank">the line</a>. If one clicks on the checkbox one will see that during calculation of <strong>$.inArray(c, c.parentNode.cells)</strong></p>
<p><input type='button' class='sfcodeselect' name='sfselectit8144' value='Select Code' data-codeid='sfcode8144' /></p>
<div class='sfcode' id='sfcode8144'>c = (!c.is(&#39;td&#39;) &#38;&#38; !c.is(&#39;th&#39;) ? <strong>c.closest(&#34;td,th&#34;)</strong> : c)[0];<br />if ($.browser.msie) { return <strong>$.inArray(c, c.parentNode.cells)</strong>; }</div>
<p>the <strong>c</strong> is <strong>undefined</strong>. The problem is that <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/grid.base.js#L2363" target="_blank">the line</a>&#160;will be called after <strong>setSelection</strong> which calls <strong>onSelectRow</strong>, which calls <strong>editRow</strong> in my demo. The <strong>editRow</strong>&#160;method change the content of the clicked cell. After that the <strong>e.target.parentNode</strong> of the original <strong>click</strong> event and even <strong>window.event.srcElement.parentNode</strong> will be set to <strong>null</strong>.</p>
<p>As a workaround I suggest to change the order of executing onCellSelect and jqGridCellSelect and calling of&#160;<strong>onSelectRow</strong>&#160;callback or <strong>editCell</strong>.</p>
<p>The same demo which use the fixed version you can test <a href="http://www.ok-soft-gmbh.com/jqGrid/Checkbox3.htm" target="_blank">here</a>.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Fri, 20 Jan 2012 00:53:54 +0200</pubDate>
        </item>
</channel>
</rss>