<?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: Possible bug with setGridParam and ondblRowClick (3.6.5)</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/possible-bug-with-setgridparam-and-ondblrowclick-3-6-5</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/possible-bug-with-setgridparam-and-ondblrowclick-3-6-5/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Possible bug with setGridParam and ondblRowClick (3.6.5)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/possible-bug-with-setgridparam-and-ondblrowclick-3-6-5#p17741</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/possible-bug-with-setgridparam-and-ondblrowclick-3-6-5#p17741</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is true.</p>
<p>In order not to bind every time when create the grid not needed events like on double click and on right click we first check if such function exists and the bind the event.</p>
<p>So in order to bind dynamically these two events you will first need to define a empty function.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 04 Jun 2010 17:50:27 +0300</pubDate>
        </item>
        <item>
        	<title>dpugh on Possible bug with setGridParam and ondblRowClick (3.6.5)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/possible-bug-with-setgridparam-and-ondblrowclick-3-6-5#p17727</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/possible-bug-with-setgridparam-and-ondblrowclick-3-6-5#p17727</guid>
        	        	<description><![CDATA[<p>I think this may be a bug.</p>
<p>I have a routine that I call after initialising the grid.&#160; The grid was initialised without specifying an ondblClickRow event.</p>
<p>&#160;&#160;&#160; $.fn.addJobDialogEventsToGrid=function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;$(this)<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.setGridParam({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;onSelectRow:function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#jd-editjobBtn,#jd-printjobBtn,#jd-faxjobBtn,#jd-activityBtn&#39;).setActive();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;gridComplete:function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#jd-editjobBtn,#jd-printjobBtn,#jd-faxjobBtn,#jd-activityBtn&#39;).setDisabled();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;ondblClickRow:function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#jd-editjobBtn&#39;).click();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#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;});</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; alert($(this).getGridParam("ondblClickRow"));<br />&#160;&#160; &#160;&#160;&#160; &#160;alert($.isFunction($(this).getGridParam("ondblClickRow")));<br />&#160;&#160; &#160;&#160;&#160; &#160;alert($(this)[0].p.ondblClickRow);<br />&#160;&#160; &#160;&#160;&#160; &#160;return this;<br />&#160;&#160; &#160;};</p>
<p>My problem was that double clicking the row did not fire the event. (Other events specified above are fine)</p>
<p>Investigating (adding the alerts)</p>
<p>first alert displays the function</p>
<p>second alert displays true</p>
<p>third alert displays the function</p>
<p>so it seems to be setup correctly.</p>
</p>
<p>The work around to the problem is to add an empty ondblRowClick event when initialising the grid.&#160;&#160; Then the setGridParam method works fine.</p>
</p>
<p>i.e.</p>
<p>.....</p>
<p>ondblClickRow:function(){}</p>
<p>....</p>
]]></description>
        	        	<pubDate>Fri, 04 Jun 2010 10:30:50 +0300</pubDate>
        </item>
</channel>
</rss>