<?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: inlineNav Buttons + usage of Keys</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1</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/bugs/inlinenav-buttons-usage-of-keys-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kobruleht on inlineNav Buttons + usage of Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26443</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26443</guid>
        	        	<description><![CDATA[<p>Oleg has posted in fixes in stackoverflow.com is number of answers, eq.</p>
<p>in stackoverflow.com/questions/8548328/jqgrid-how-to-pass-data-when-adding-row-using-add-navigator-button</p>
</p>
<p><span style="font-size: x-small;"><span style="font-size: x-small;">(my change is marked as AM):</span></span></p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8839' value='Select Code' data-codeid='sfcode8839' /></p>
<div class='sfcode' id='sfcode8839'>var updateButtonState = function (grid) {<br />&#160;&#160;&#160; var isNonEditable, isEditing, $row, selectedId = grid.jqGrid(&#39;getGridParam&#39;, &#39;selrow&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rid = $.jgrid.jqID(selectedId), rowSelector = &#39;tr#&#39; + rid;<br />&#160;&#160;&#160; if (selectedId === null) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // no rows in grid - no View, no Edit, no Delete, but Add<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#add_list, #add_list_top, #grid_iladd&#34;).removeClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#view_grid_top, #del_grid, #del_grid_top, #edit_grid, #edit_grid_top, #grid_iledit, #grid_ilsave, grid_ilcancel&#34;).addClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160; } else {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $row = $(rowSelector);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; isEditing = $row.attr(&#39;editable&#39;) &#124;&#124; &#39;0&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; isNonEditable = $row.hasClass(&#39;not-editable-row&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // no row selected or selected row has - no View, no Delete<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#view_list_top&#34;).removeClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (isNonEditable) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#del_grid, #del_grid_top, #edit_grid, #edit_grid_top, #grid_iledit&#34;).addClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else if (isEditing === &#39;1&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#grid_ilsave, grid_ilcancel&#34;).removeClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#add_grid, #add_grid_top, #grid_iladd, #del_grid, #del_grid_top, #edit_grid, #edit_grid_top, #grid_iledit&#34;).addClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#grid_ilsave, #grid_ilcancel&#34;).addClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#add_grid, #add_grid_top, #grid_iladd, #del_grid, #del_grid_top, #edit_grid, #edit_grid_top, #grid_iledit&#34;).removeClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // AM. comments and &#34; removed<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(rowSelector + &#34; div.ui-inline-edit, &#34; + rowSelector + &#34; div.ui-inline-del&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowSelector + &#34;.ui-jqgrid-btable:first&#34;).hide();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(rowSelector + &#34; div.ui-inline-save, &#34; + rowSelector + &#34; div.ui-inline-cancel&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowSelector + &#34;.ui-jqgrid-btable:first&#34;).show();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; }<br />};</div></p>
]]></description>
        	        	<pubDate>Sun, 22 Apr 2012 21:53:10 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on inlineNav Buttons + usage of Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26423</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26423</guid>
        	        	<description><![CDATA[<p>Hi again,</p>
</p>
<p>I updated to jqGrid Version 4.3.2 but the bug is still alive...</p>
</p>
<p>Greetings</p>
<p>Snoopy</p>
]]></description>
        	        	<pubDate>Fri, 20 Apr 2012 18:48:15 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on inlineNav Buttons + usage of Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26147</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26147</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>I cloned the current git repository, used gradlew to build the .js files and copied them to the sites location. I used exactly the same example grid as I did in my post before, here are the results:</p>
<p>1.) The dblClick issue is NOT resolved, same behaviour as in point 2 of my starting post.</p>
<p>2.) Entering edit mode with click on "edit"-button works as expected, pressing the ESC - Key afterwards also works.</p>
<p>3.) Pressing the enter key while in edit mode by clicking the edit-button makes the page reload itself and "alert" the repsonse text...?!</p>
</p>
<p>Regards</p>
<p>Snoopy</p>
]]></description>
        	        	<pubDate>Thu, 15 Mar 2012 00:35:44 +0200</pubDate>
        </item>
        <item>
        	<title>tony on inlineNav Buttons + usage of Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26141</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26141</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes there was a bug regarding keys : true option.</p>
<p>We have made a lot of fixes regarding this. All of them are in GitHub.</p>
<p>You can test these and let me know if they are fixed for you.</p>
<p>Thanks.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 14 Mar 2012 18:10:13 +0200</pubDate>
        </item>
        <item>
        	<title>snoopy on inlineNav Buttons + usage of Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26137</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/inlinenav-buttons-usage-of-keys-1#p26137</guid>
        	        	<description><![CDATA[<p>Hi everybody,</p>
</p>
<p>since no one could help in the "Help" Forum (<a href="http://www.trirand.com/blog/?page_id=393/help/inlinenav-buttons-usage-of-keys/#p26060" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....ys/#p26060</a>) with the following issue, I assume this is a bug:</p>
</p>
<p>When using the "Enter / Esc" Key functionality, the active/inactive states of the inline nav buttons is not updated correctly. As a plus, when using the grids "ondblClickRow" event for entering inline &#8211; editing, the buttons states are not updated too. To clearify this, here some screens made from a slightly modified grid example from the jqgrid examples page:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4370' value='Select Code' data-codeid='sfcode4370' /></p>
<div class='sfcode' id='sfcode4370'>$(&#39;#tblGrid&#39;).jqGrid({ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#34;local&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height: 250, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager:&#34;pgGrid&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<strong>ondblClickRow:function(rowid) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#tblGrid&#39;).jqGrid(&#39;editRow&#39;,rowid,true);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},</strong><br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;], <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[ {name:&#39;id&#39;,index:&#39;id&#39;, width:60, sorttype:&#34;int&#34;,editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90, sorttype:&#34;date&#34;,editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;name&#39;,index:&#39;name&#39;, width:100,editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:&#34;right&#34;,sorttype:&#34;float&#34;,editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:&#34;right&#34;,sorttype:&#34;float&#34;,editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:&#34;right&#34;,sorttype:&#34;float&#34;,editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false,editable:true} <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;caption: &#34;Manipulating Array Data&#34; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#tblGrid&#34;).jqGrid(&#39;navGrid&#39;,&#34;#pgGrid&#34;,{edit:false,add:false,del:true}); <br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#tblGrid&#34;).jqGrid(&#39;inlineNav&#39;,&#34;#pgGrid&#34;,{addParams:{position:&#39;last&#39;,<strong>addRowParams:{keys:true}},editParams:{keys:true}</strong>});</p>
</div>
<p>1) The source Grid:</p>
<p>[Image Can Not Be Found]</p>
</p>
<p>2) The grid after doubleClicking the first line; this is in edit mode, but the inline buttons aren&#39;t (save + abort deactivated)</p>
<p>[Image Can Not Be Found]</p>
</p>
<p>3) The grid after clicking the "edit" button with first line selected; the row and the buttons are both in edit &#8211; mode (save + abort activated, edit + add deactivated)</p>
<p>[Image Can Not Be Found]</p>
</p>
<p>4) The grid after pressing "Esc" or "Enter"; the row left edit mode, the inline buttons didn&#39;t: edit + add are deativated, save + abort activated)</p>
<p>[Image Can Not Be Found]</p>
<p>Am I doing something wrong or can anybody confirm this as a bug?</p>
</p>
<p>Thx in advance!</p>
<p>Snoopy</p>
]]></description>
        	        	<pubDate>Wed, 14 Mar 2012 15:07:26 +0200</pubDate>
        </item>
</channel>
</rss>