<?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: Submitting Add/Edit/Search on Enter key</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key</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/feature-request/submitting-addeditsearch-on-enter-key/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>islandblaze on Submitting Add/Edit/Search on Enter key</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key#p27218</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key#p27218</guid>
        	        	<description><![CDATA[<p><strong>Enter on Add/Edit:</strong></p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4319' value='Select Code' data-codeid='sfcode4319' /></p>
<div class='sfcode' id='sfcode4319'>$.extend($.jgrid.edit, {<br />&#160;&#160; &#160;&#160;&#160;&#160; // ... some other default which you use<br />&#160;&#160; &#160;&#160;&#160;&#160; onInitializeForm: function ($form) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;td.DataTD&#62;.FormElement&#34;, $form).keypress(function (e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (e.which === $.ui.keyCode.ENTER) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#sData&#34;, $form.next()).trigger(&#34;click&#34;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;<br />&#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;&#160;&#160; });<br />&#160;&#160; &#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;});</div>
<p>Enter on Search:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9625' value='Select Code' data-codeid='sfcode9625' /></p>
<div class='sfcode' id='sfcode9625'>$.extend($.jgrid.search, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // ... some other default which you use<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; afterRedraw: function (p) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var $form = $(this), formId = this.id, // fbox_list<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bindKeydown = function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $form.find(&#34;td.data&#62;.input-elm&#34;).keydown(function (e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (e.which === $.ui.keyCode.ENTER) {<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;&#160;&#160;&#160; $(e.target).change();<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;&#160;&#160;&#160; $(&#34;#&#34; + $.jgrid.jqID(formId) + &#34;_search&#34;).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; }<br />&#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;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; oldOnChange = p.onChange,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myOnChange = function (param) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var $input = $form.find(&#34;td.data&#62;.input-elm&#34;), events;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; oldOnChange.call(this, param);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($input.length &#62; 0) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; events = $input.data(&#34;events&#34;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (events &#38;&#38; !events.keydown) {<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;&#160;&#160;&#160; bindKeydown();<br />&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#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;&#160;&#160; p.onChange = myOnChange;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; bindKeydown.call(this);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; });</div>
]]></description>
        	        	<pubDate>Tue, 28 Aug 2012 17:57:42 +0300</pubDate>
        </item>
        <item>
        	<title>mfej74 on Submitting Add/Edit/Search on Enter key</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key#p19812</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key#p19812</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have the same request. In the advanced search box, i want to execute the search button when i press enter. ( i used the modal option), but i don&#39;t understand how to do that. I try to have a look to the html generated by the search box but i have no idea to do that.</p>
</p>
<p>thanks for your helps.</p>
]]></description>
        	        	<pubDate>Thu, 16 Sep 2010 19:08:49 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Submitting Add/Edit/Search on Enter key</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key#p4401</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key#p4401</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can use onInitializeForm and attach a Enter to submit the form</p>
<p>Use</p>
<p>onInitializeForm : function(formid) {</p>
<p>$(&#39;input&#39;,formid).keypress(function(e) {</p>
<p>if(EnterKey is pressed) {</p>
<p>$(&#8221;#sData&#8221;,formid).trigger(&#8221;click&#8221;);</p>
<p>return false;</p>
<p>}</p>
<p>});</p>
<p>}</p>
]]></description>
        	        	<pubDate>Thu, 05 Feb 2009 02:56:55 +0200</pubDate>
        </item>
        <item>
        	<title>kumar on Submitting Add/Edit/Search on Enter key</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key#p4378</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/submitting-addeditsearch-on-enter-key#p4378</guid>
        	        	<description><![CDATA[<p>It would be great if for the Add/Edit/Search forums, the Enter key would default to the submit button, so users can use it instead of having to click the button.</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Wed, 04 Feb 2009 21:24:31 +0200</pubDate>
        </item>
</channel>
</rss>