<?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: Edit next row after hitting "Enter" key</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/edit-next-row-after-hitting-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/edit-next-row-after-hitting-enter-key/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>advantage_ed on Edit next row after hitting "Enter" key</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-next-row-after-hitting-enter-key#p27463</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-next-row-after-hitting-enter-key#p27463</guid>
        	        	<description><![CDATA[<p>My grid has the "Enter" key bound to it and I&#39;ve issued a command editRow after saving, but it does not go to the next row and put it into edit mode. All it does is save the current row and&#160;restores the row to read-only.&#160;How can I get the next row to go into edit mode after hitting "Enter"?</p>
<pre>			//Binds&#160;the&#160;Enter&#160;key&#160;to&#160;the&#160;grid&#160;to&#160;save&#160;the&#160;currently&#160;active&#160;row
			$("#cycleCountGrid").jqGrid("bindKeys",&#160;{
				"onEnter":&#160;function&#160;(currentId)&#160;{
					//Saves&#160;the&#160;active&#160;row
					saveRow(currentId);
 
					var&#160;nextId&#160;=&#160;currentId&#160;+&#160;1;
					$("#cycleCountGrid").jqGrid("editRow",&#160;nextId);
 
					//Updates&#160;the&#160;last&#160;count&#160;using&#160;the&#160;active&#160;row
					last_row&#160;=&#160;$("#cycleCountGrid").jqGrid("getRowData",&#160;currentId);
				}
			});</pre>
]]></description>
        	        	<pubDate>Tue, 02 Oct 2012 18:06:20 +0300</pubDate>
        </item>
</channel>
</rss>