<?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: Override click event for edit button</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/override-click-event-for-edit-button</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/help/override-click-event-for-edit-button/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Leandro Irgang on Override click event for edit button</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/override-click-event-for-edit-button#p22708</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/override-click-event-for-edit-button#p22708</guid>
        	        	<description><![CDATA[<p>Hi</p>
</p>
<p>no tested, but leave the edit button with original behavior then make use of afterShowForm like code below</p>
</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; afterShowForm:function (formid) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var rowid = $(&#39;#grid_test121&#39;).jqGrid(&#39;getGridParam&#39;, &#39;selrow&#39;);</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (rowid == null) {<br />&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160;&#160; $(&#39;#grid_test121&#39;).jqmHide();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; // your code here<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;},</p>
</p>
<p>Leandro</p>
]]></description>
        	        	<pubDate>Fri, 08 Apr 2011 20:40:22 +0300</pubDate>
        </item>
        <item>
        	<title>FusionGuy on Override click event for edit button</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/override-click-event-for-edit-button#p22678</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/override-click-event-for-edit-button#p22678</guid>
        	        	<description><![CDATA[<p>So I&#39;ve generated a grid and want to override the click event when the auto-generated edit button is clicked.&#160; The client was us to display a JS alert modal dialog when no row is selected.&#160; I tried overriding the "click" event and that works, but if they then select a row, nothing else happens..&#160; Is there a way to capture the click event, verify that a row is selected, then continue processing the edit functionality??&#160; Below is my code for the basic buttons.</p>
</p>
<p>$(&#39;#myGridName&#39;).jqGrid().navGrid(&#39;#myGridName&#39;,</p>
<p>{ add: false, del: true, search: false, refresh: false, edit: true },</p>
]]></description>
        	        	<pubDate>Tue, 05 Apr 2011 18:53:51 +0300</pubDate>
        </item>
</channel>
</rss>