<?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 if Enter is pressed</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed</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-if-enter-is-pressed/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kobruleht on Inline edit if Enter is pressed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23400</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23400</guid>
        	        	<description><![CDATA[<blockquote>
<p>I created corrected testcase and included also multiselect: true. This causes the issue. How to start edit using enter and allow multiple row selection also ?</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;<br />&#60;html xmlns="http://www.w3.org/1999/xhtml<br />&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/redmond/jquery-ui.css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.0.0/css/ui.jqgrid.css" /&#62;<br />&#60;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js%22%3E%3C/script"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js%22%3E%3C/script"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.0.0/js/i18n/grid.locale-en.js%22%3E%3C/script"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript"&#62;<br />$.jgrid.no_legacy_api = true;<br />$.jgrid.useJSON = true;<br />&#60;/script&#62;<br />&#60;script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.0.0/js/jquery.jqGrid.min.js%22%3E%3C/script"&#62;&#60;/script&#62;</p>
<p>&#60;script type="text/javascript"&#62;<br />$(function () {<br />var mydata = [<br />{ id: "1", invdate: "2007-10-01", name: "test", note: "note", amount: "200.00", tax: "10.00", closed: true, ship_via: "TN", total: "210.00" },<br />{ id: "2", invdate: "2007-10-02", name: "test2", note: "note2", amount: "300.00", tax: "20.00", closed: false, ship_via: "FE", total: "320.00" },<br />{ id: "3", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", closed: false, ship_via: "FE", total: "430.00" },<br />{ id: "4", invdate: "2007-10-04", name: "test4", note: "note4", amount: "200.00", tax: "10.00", closed: true, ship_via: "TN", total: "210.00" },<br />{ id: "5", invdate: "2007-10-31", name: "test5", note: "note5", amount: "300.00", tax: "20.00", closed: false, ship_via: "FE", total: "320.00" },<br />{ id: "12", invdate: "2007-09-10", name: "test12", note: "note12", amount: "500.00", tax: "30.00", closed: false, ship_via: "FE", total: "530.00" }<br />];</p>
<p>var grid = $("#grid");<br />grid.jqGrid({<br />datatype: &#39;local&#39;,<br />data: mydata,</p>
<p>colModel: [<br />{ name: &#39;invdate&#39;, editable: true, width: 30 },<br />{ name: &#39;name&#39;, editable: true, width: 271 }<br />],<br />gridview: true,<br />pager: &#39;#pager&#39;,<br />viewrecords: true,<br />multiselect: true,<br />editurl: &#39;clientArray&#39;<br />});<br />});</p>
<p>$("#grid").jqGrid(&#39;bindKeys&#39;, {<br />onEnter: function (rowid) {<br />alert("You enter a row with id: " + rowid);<br />}<br />});</p>
<p>&#60;/script&#62;</p>
<p>&#60;/head&#62;<br />&#60;body&#62;</p>
<p>&#60;table id="grid"&#62;<br />&#60;/table&#62;<br />&#60;div id="pager"&#62;<br />&#60;/div&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</blockquote>
]]></description>
        	        	<pubDate>Mon, 30 May 2011 19:30:55 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Inline edit if Enter is pressed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23399</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23399</guid>
        	        	<description><![CDATA[<p>You should call <strong>$("#grid").jqGrid(&#39;bindKeys&#39;, {...});</strong>&#160;<span style="text-decoration: underline;">inside</span> of <strong>$(function () {/*here*/});</strong>.</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 30 May 2011 18:36:46 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on Inline edit if Enter is pressed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23398</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23398</guid>
        	        	<description><![CDATA[<p>I created complete standalone testcase based on your sample below. How to cause alert box to appear on enter ? How to force up and down arrow keys to change current row ?</p>
<blockquote>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;<br />&#60;html xmlns="http://www.w3.org/1999/xhtml<br />&#160;&#160;&#160; &#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;</p>
<p>&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/themes/redmond/jquery-ui.css" /&#62;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" href="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.0.0/css/ui.jqgrid.css" /&#62;<br />&#160;&#160;&#160; &#60;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js%22%3E%3C/script"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js%22%3E%3C/script"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.0.0/js/i18n/grid.locale-en.js%22%3E%3C/script"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.jgrid.no_legacy_api = true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.jgrid.useJSON = true;<br />&#160;&#160;&#160; &#60;/script&#62;<br />&#160;&#160;&#160; &#60;script type="text/javascript" src="http://www.ok-soft-gmbh.com/jqGrid/jquery.jqGrid-4.0.0/js/jquery.jqGrid.min.js%22%3E%3C/script"&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var mydata = [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "1", invdate: "2007-10-01", name: "test", note: "note", amount: "200.00", tax: "10.00", closed: true, ship_via: "TN", total: "210.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "2", invdate: "2007-10-02", name: "test2", note: "note2", amount: "300.00", tax: "20.00", closed: false, ship_via: "FE", total: "320.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "3", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", closed: false, ship_via: "FE", total: "430.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "4", invdate: "2007-10-04", name: "test4", note: "note4", amount: "200.00", tax: "10.00", closed: true, ship_via: "TN", total: "210.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "5", invdate: "2007-10-31", name: "test5", note: "note5", amount: "300.00", tax: "20.00", closed: false, ship_via: "FE", total: "320.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "6", invdate: "2007-09-06", name: "test6", note: "note6", amount: "400.00", tax: "30.00", closed: false, ship_via: "FE", total: "430.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "7", invdate: "2007-10-04", name: "test7", note: "note7", amount: "200.00", tax: "10.00", closed: true, ship_via: "TN", total: "210.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "8", invdate: "2007-10-03", name: "test8", note: "note8", amount: "300.00", tax: "20.00", closed: false, ship_via: "FE", total: "320.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "9", invdate: "2007-09-01", name: "test9", note: "note9", amount: "400.00", tax: "30.00", closed: false, ship_via: "TN", total: "430.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "10", invdate: "2007-09-08", name: "test10", note: "note10", amount: "500.00", tax: "30.00", closed: true, ship_via: "TN", total: "530.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "11", invdate: "2007-09-08", name: "test11", note: "note11", amount: "500.00", tax: "30.00", closed: false, ship_via: "FE", total: "530.00" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { id: "12", invdate: "2007-09-10", name: "test12", note: "note12", amount: "500.00", tax: "30.00", closed: false, ship_via: "FE", total: "530.00" }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ];</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var grid = $("#grid");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;local&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: mydata,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160; &#160;&#160;{ name: &#39;invdate&#39;, editable: true, width: 30 },<br />&#160;&#160; &#160;&#160;{ name: &#39;name&#39;, editable: true, width: 271 }<br />&#160;&#160; &#160;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;est&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: &#39;clientArray&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#grid").jqGrid(&#39;bindKeys&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onEnter: function (rowid) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("You enter a row with id: " + rowid);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160; &#60;/script&#62;</p>
<p>&#60;/head&#62;<br />&#60;body&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id="grid"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/table&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id="pager"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</blockquote>
]]></description>
        	        	<pubDate>Mon, 30 May 2011 18:19:56 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Inline edit if Enter is pressed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23382</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23382</guid>
        	        	<description><![CDATA[<p>I have answerd the question <a href="http://stackoverflow.com/questions/6170079/jqgrid-how-to-implement-inline-edit-on-enter/6170308#6170308" target="_blank">here</a>. The corresonding demo is <a href="http://www.ok-soft-gmbh.com/jqGrid/SimpleLocalGridWithInlineEditingOnEnter.htm" target="_blank">here</a>.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 30 May 2011 10:15:27 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on Inline edit if Enter is pressed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23373</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-edit-if-enter-is-pressed#p23373</guid>
        	        	<description><![CDATA[<p>How to start inline edit if Enter is pressed?</p>
<p>I tried</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5758' value='Select Code' data-codeid='sfcode5758' /></p>
<div class='sfcode' id='sfcode5758'>
<p>grid.jqGrid(&#39;bindKeys&#39;, { &#34;onEnter&#34;: function(rowid) {<br />&#160;alert(rowid);<br />&#160;$(&#39;#grid&#39;).editRow(rowid, true);<br />&#160;}<br />&#160;});</p>
</div>
<p>but for unknown reason alert box does not appear if enter is pressed in jqGrid.</p>
]]></description>
        	        	<pubDate>Sat, 28 May 2011 23:57:24 +0300</pubDate>
        </item>
</channel>
</rss>