<?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: Inline edit how to get enter key to execute onClick event</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-how-to-get-enter-key-to-execute-onclick-event</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/inline-edit-how-to-get-enter-key-to-execute-onclick-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>violinssoundcool on Inline edit how to get enter key to execute onClick event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-how-to-get-enter-key-to-execute-onclick-event#p22023</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-how-to-get-enter-key-to-execute-onclick-event#p22023</guid>
        	        	<description><![CDATA[<p>In my grid, I have a save button for each row. The buttons are created in gridComplete</p>
</p>
<p>gridComplete: function() {</p>
<p>&#160;&#160;&#160; var ids = $(&#39;#mygrid&#39;).jqGrid(&#39;getDataIDs&#39;);</p>
<p>&#160;&#160;&#160; for (var i=0; i&#60;ids.length; i++) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var cl = ids[i];</p>
<p>&#160;&#160; &#160;&#160;&#160;&#160; se = "&#60;input style=&#39;height:22px;width:60px;&#39; type=&#39;button&#39; value=&#39;Save&#39; onclick="$(&#39;#ordersGrid&#39;).jqGrid(&#39;saveRow&#39;,&#39;"+cl+"&#39;);$(&#39;#ordersGrid&#39;).trigger(&#39;reloadGrid&#39;);" /&#62;"; <br />&#160;&#160; &#160;&#160;&#160;&#160; $(&#39;#ordersGrid&#39;).jqGrid(&#39;setRowData&#39;,ids[i],{act:se});</p>
<p>&#160;&#160;&#160; }</p>
<p>}</p>
</p>
<p>The buttons are created fine, but when they have focus and the user hits "Enter," the onClick event isn&#39;t executed. All that happens is that the editurl is executed. When I click on the button, onClick executes just fine.</p>
</p>
<p>Any ideas?</p>
]]></description>
        	        	<pubDate>Wed, 09 Feb 2011 20:03:59 +0200</pubDate>
        </item>
</channel>
</rss>