<?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: editGridRow method doesn't trigger navGrid edit events (beforeShowForm, etc.)</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/editgridrow-method-doesnt-trigger-navgrid-edit-events-beforeshowform-etc</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/editgridrow-method-doesnt-trigger-navgrid-edit-events-beforeshowform-etc/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on editGridRow method doesn't trigger navGrid edit events (beforeShowForm, etc.)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editgridrow-method-doesnt-trigger-navgrid-edit-events-beforeshowform-etc#p29057</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editgridrow-method-doesnt-trigger-navgrid-edit-events-beforeshowform-etc#p29057</guid>
        	        	<description><![CDATA[<p>It&#39;s not a bug. You should just call <a href="/jqgridwiki/doku.php?id=wiki:form_editing#editgridrow" target="_blank">editGridRow</a> with <em>options</em> which you need if you call the method directly.</p>
<p>What you can do is about the following:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8838' value='Select Code' data-codeid='sfcode8838' /></p>
<div class='sfcode' id='sfcode8838'><strong>var formEditingOptions = {<br />&#160; &#160; &#160; &#160; // definition of some callbacks<br />&#160; &#160; &#160; &#160; beforeShowForm: function(form) {<br />&#160; &#160; &#160; &#160; &#160; &#160; console.log(123);<br />&#160; &#160; &#160; &#160; &#160; &#160; ...<br />&#160; &#160; &#160; &#160; },<br />&#160; &#160; &#160; &#160; // definition of some options<br />&#160; &#160; &#160; &#160; recreateForm: true<br />&#160; &#160; };</strong></p>
<p>// create the grid<br />&#160;...&#160;<br />&#160; &#160; &#160;ondblClickRow: function(rowid, iRow, iCol, e) {<br />&#160; &#160; &#160; &#160; &#160;$(this).jqGrid(&#39;editGridRow&#39;, rowid<strong>, formEditingOptions</strong>);<br />&#160; &#160; &#160; &#160; &#160;e.stopPropagation();<br />&#160; &#160; &#160;}&#160;</p>
<p>// create navigator bar<br />.jqGrid(&#39;navGrid&#39;, &#39;#pager&#39;, {&#39;add&#39;:true,&#39;edit&#39;:true,&#39;del&#39;:true},<br />&#160; &#160; <strong>formEditingOptions, &#160;// options of Edit form<br /></strong><strong>&#160; &#160; formEditingOptions);</strong>&#160;<strong>// options of Add form</strong></p>
</div>
<p>In the case you will use the same options for dirrect calling of <a href="/jqgridwiki/doku.php?id=wiki:form_editing#editgridrow" target="_blank">editGridRow</a>&#160;and for creating of Add/Edit forms by navGrid.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 24 Jun 2013 14:10:00 +0300</pubDate>
        </item>
        <item>
        	<title>unirgy on editGridRow method doesn't trigger navGrid edit events (beforeShowForm, etc.)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editgridrow-method-doesnt-trigger-navgrid-edit-events-beforeshowform-etc#p29054</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editgridrow-method-doesnt-trigger-navgrid-edit-events-beforeshowform-etc#p29054</guid>
        	        	<description><![CDATA[<p>For example if I have this:</p>
<pre>    ondblClickRow: function(rowid, iRow, iCol, e) {
        $(this).jqGrid(&#39;editGridRow&#39;, rowid);
        e.stopPropagation();
    }
</pre>
<p>And then:</p>
</p>
<pre>.jqGrid(&#39;navGrid&#39;, &#39;#pager&#39;, {&#39;add&#39;:true,&#39;edit&#39;:true,&#39;del&#39;:true}, {     
    beforeShowForm: function(form) {
         console.log(123);
    } 
})
</pre>
</p>
<p>The event will be triggered on edit button, but not on double click.</p>
<p>Do they need to be triggered manually?</p>
<p>Do I need to use a different event?&#160;</p>
<p>Call event code from ondblclick as well?</p>
]]></description>
        	        	<pubDate>Mon, 24 Jun 2013 10:55:43 +0300</pubDate>
        </item>
</channel>
</rss>