<?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: SaveRow without Enter key</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/saverow-without-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/help/saverow-without-enter-key/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on SaveRow without Enter key</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saverow-without-enter-key#p21433</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saverow-without-enter-key#p21433</guid>
        	        	<description><![CDATA[<p>HEllo,</p>
<p>Yes it is possible and you can do what you want logic. The idea is to use the onSelectRow event.</p>
<p>Go into the demo</p>
<p><a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....qgrid.html</a></p>
<p>Open the Row editing tree item and then Using Events example.</p>
<p>Replace the onSelectRow event with this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2252' value='Select Code' data-codeid='sfcode2252' /></p>
<div class='sfcode' id='sfcode2252'>
<p>onSelectRow: function(id)</p>
<p>{ 		if(id &#38;&#38; id!==lastsel) {</p>
<p>&#160;&#160;&#160; jQuery(&#39;#rowed3&#39;).jqGrid(&#39;saveRow&#39;,lastsel);</p>
<p>&#160;&#160;&#160; jQuery(&#39;#rowed3&#39;).jqGrid(&#39;editRow&#39;,id,true); 			lastsel=id;</p>
<p>}</p>
<p>},</p>
</div>
<p>As you can see we have replace the restoreRow with save row function</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 26 Dec 2010 14:00:26 +0200</pubDate>
        </item>
        <item>
        	<title>schechtere on SaveRow without Enter key</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saverow-without-enter-key#p21423</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saverow-without-enter-key#p21423</guid>
        	        	<description><![CDATA[<p>I have a grid with one editable column, which is a drop down list. &#160; When the grid is loaded, am making each row of this column editable. &#160;I would like to be able to save the data whenever the user makes a selection from the list, without requiring them to press the Enter key.</p>
</p>
<p>I verified that the Change event is fired when a dropdown is selected:</p>
</p>
<p>editoptions: {	<span style="white-space: pre;"> </span>value:"ACE:ACE;ACC:ACC;DSP:DSP;PKU:PKU;DLV:DLV",</p>
<p><span style="white-space: pre;"> </span>dataEvents: [ &#160;type: &#39;change&#39;,&#160;</p>
<p>&#160;<span style="white-space: pre;"> </span>fn: function(e) {	 {</p>
<p>&#160;<span style="white-space: pre;"> </span>alert(&#39;Order is &#39; + JSON.stringify(e.target.parentNode.parentNode.childNodes[0].innerHTML));</p>
<p>&#160;<span style="white-space: pre;"> </span>&#160;&#160;&#160;}																			]																				}																					 &#160;} &#160;</p>
</p>
<p>I think my disconnect is that I need the row_id, and I am not getting it from the &#39;change&#39;. &#160;Is there a better way?</p>
]]></description>
        	        	<pubDate>Fri, 24 Dec 2010 10:08:19 +0200</pubDate>
        </item>
</channel>
</rss>