<?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: Intercepting ESC key on inline mode edit </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/intercepting-esc-key-on-inline-mode-edit</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/intercepting-esc-key-on-inline-mode-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>josepk on Intercepting ESC key on inline mode edit </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/intercepting-esc-key-on-inline-mode-edit#p902</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/intercepting-esc-key-on-inline-mode-edit#p902</guid>
        	        	<description><![CDATA[<p>Hi Toni,</p>
<p>I have found the solution,</p>
<p>I have modified the grid.inlinedit.js and&#160; added a function :</p>
<p>afterCancelFunc to the editRow.</p>
<p>And when you press ESC key the function is called.</p>
<p>I posted the code :</p>
<p><span style="font-size: x-small;"><font size="2"></font></span></p>
<p>editRow :</p>
<p><span style="font-size: x-small; color: #7f0055;">function</span><span style="font-size: x-small;">(rowid,keys,oneditfunc,succesfunc, url, extraparam, aftersavefunc, afterCancelFunc) </span></p>
<p><span style="font-size: x-small; color: #7f0055;">{<span style="font-size: x-small; color: #7f0055;">if </span><span style="font-size: x-small;">(e.keyCode === 13) $($t).saveRow(rowid,succesfunc, url, extraparam, aftersavefunc);</span></span></p>
<p><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small;"><span style="font-size: x-small;"></span></span></span></p>
<p>restoreRow :</p>
<p><font size="2"></p>
<p></font></p>
<p><span style="font-size: x-small; color: #7f0055;">function</span><span style="font-size: x-small;">(rowid, afterCancelFunc) {</span><span style="font-size: x-small; color: #7f0055;"></span></p>
<p><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small;"><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">if</span><span style="font-size: x-small;">( </span><span style="font-size: x-small; color: #7f0055;">typeof </span><span style="font-size: x-small;">afterCancelFunc === </span><span style="font-size: x-small; color: #8e00ff;">"function"</span><span style="font-size: x-small;">) afterCancelFunc(rowid);<br />
</span></span></span></span></p>
<p>I have tested and It works.</p>
<p><font size="2" color="#7f0055"></font><font size="2"></font><font size="2" color="#7f0055"></font><font size="2"></font></p>
<p>Josep Escofet</p>
<p><font size="2" color="#7f0055"></font><font size="2"></font><font size="2" color="#7f0055"></p>
<p></font><font size="2" color="#7f0055"></font><font size="2"></p>
<p></font><font size="2" color="#7f0055"></p>
<p></font></p></p>
]]></description>
        	        	<pubDate>Fri, 27 Jun 2008 06:54:18 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Intercepting ESC key on inline mode edit </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/intercepting-esc-key-on-inline-mode-edit#p851</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/intercepting-esc-key-on-inline-mode-edit#p851</guid>
        	        	<description><![CDATA[<p>Josep,</p>
<p>Try to create a button after editing the row.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 22 Jun 2008 02:58:19 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Intercepting ESC key on inline mode edit </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/intercepting-esc-key-on-inline-mode-edit#p843</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/intercepting-esc-key-on-inline-mode-edit#p843</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I am using inline Mode editing, and when the user click on button or on row it is apearing a button for save the row, but if the user press ESC key, the row is restored but the button don&#39;t disappear,</p>
<p>I need some way to intercepting the ESC key pressed for clean the button as the same way as the user press ENTER it is called a function.</p>
</p>
<p>thanks.</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Fri, 20 Jun 2008 05:45:32 +0300</pubDate>
        </item>
</channel>
</rss>