<?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" method does not honor "oper"</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper</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/saverow-method-does-not-honor-oper/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mangamuri on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p29541</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p29541</guid>
        	        	<description><![CDATA[<p>Hi</p>
</p>
<p>I am also implementing same in my code.</p>
<p>But whenever i use this line</p>
</p>
<p>$(&#39;#&#39;+rowid).hasClass(&#39;jqgrid-new-row&#39;) ? oper="add" : oper="edit";</p>
</p>
<p>It always gives me edit, am i missing anything here?</p>
</p>
<p>Please help</p>
]]></description>
        	        	<pubDate>Wed, 25 Sep 2013 20:02:09 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28689</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28689</guid>
        	        	<description><![CDATA[<p>Just to complete this post:</p>
</p>
<p>I solved it as you suggested with this code modifications in my example:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5102' value='Select Code' data-codeid='sfcode5102' /></p>
<div class='sfcode' id='sfcode5102'>&#160;&#160;&#160; $(&#39;#save&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; .button()<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; .click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowid=$(&#39;#test&#39;).jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39;+rowid).hasClass(&#39;jqgrid-new-row&#39;) ? oper=&#34;add&#34; : oper=&#34;edit&#34;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#test&#39;).jqGrid(&#39;saveRow&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowid,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#34;extraparam&#34; : {&#34;oper&#34;:oper}<br />&#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;&#160; });</div>
<p>Thx a lot for your assistance</p>
]]></description>
        	        	<pubDate>Fri, 19 Apr 2013 16:31:14 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28688</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28688</guid>
        	        	<description><![CDATA[<p>&#62;In my last post I tried to explain you the current state of inline  editing. Nothing is perfect in the world and jqGrid in not an</p>
<p>&#62;exception:  documentation, code, design&#8230;</p>
<p>Sure I&#39;m absolutly with you and that jqGrid is functioning the way it does till today with that many functionalities is great (and a LOT of work as I can imagine)... one - as a "user" of jqGrid - simply has to know about such "specialities"...</p>
</p>
<p>&#62;Many things you can do yourself: improve wiki documentation of jqGrid,  post pull request with improvements of jqGrid code and</p>
<p>&#62;so on. I do  myself such things regulary.</p>
<p>I could have a try understanding the jqGrid code so far not sure if I&#39;m deep enough in pure / hardcore JavaScript developing even if I would not call myself a newbie 😉 Will have a try where / with what I could help...</p>
</p>
<p>Greetings also from Germany as I noticed only now 😉</p></p>
]]></description>
        	        	<pubDate>Fri, 19 Apr 2013 13:53:09 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28687</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28687</guid>
        	        	<description><![CDATA[<p>In my last post I tried to explain you the current state of inline editing. Nothing is perfect in the world and jqGrid in not an exception: documentation, code, design...&#160;</p>
<p>Many things you can do yourself: improve wiki documentation of jqGrid, post pull request with improvements of jqGrid code and so on. I do myself such things regulary.</p>
<p>I agree with many remarks or suggestions which you wrote, but I can repeat, that <em>in my opinion</em> <strong>you described not a bug in jqGrid</strong>. You just used <strong>saveRow</strong> in a wrong way (I mean the existing not perfect inline editing which we all use).</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Fri, 19 Apr 2013 13:41:37 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28686</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28686</guid>
        	        	<description><![CDATA[<p>&#62;In the case there are misunderstanding. <strong>saveRow</strong> is old method. It should really always send <strong>oper=edit</strong> to the server if no</p>
<p>&#62; other <strong>oper</strong> property are defined inside of <strong>extraparam</strong> option of <strong>saveRow</strong>&#160;method.</p>
<p>OK, I think that would be worth mentioning in the docs as there one can nowhere read about that it is even POSSIBLE to "overwrite" such an internal generated property as "oper" is.</p>
</p>
<p>&#62;Inline editing don&#39;t suppurt currently any options <em>assosiated</em> with editing row. So I personally prefer usage of <strong>editRow</strong> with <strong>&#160;</strong></p>
<p><strong>&#62; keys:true</strong> option.</p>
<p>When you have a textarea/multiline textbox in InlineEditing pressing Enter in it generates a new Line in the textarea and doesn&#39;t trigger the InlineEditing saving action.... or is there a way to redefine the "saving key" from "Enter" to "CTRL-S" for example?</p>
</p>
<p>&#62;I never call <strong>saveRow</strong> explicitly in my code. In the way <strong>editRow</strong>&#160;calls internally with the options which I specified for</p>
<p><strong>&#62;editRow</strong>&#160;when the user press ENTER key.</p>
<p>Then I&#39;m wondering why this method exists at all and why it es explicitly mentioned in the docs in the "InlineEditing" Section...</p>
<p>Till today I assumed, that one can either call "saveRow" manually or that it (=exactly the same) is triggerd by hitting "Enter" and "keys:true"... so in the last case jqGrid internally calls a completely different method and does not exactly the same than "saveRow" does? Why? Not very consitent, is it? I normally would expect, that an action ("Save this row" in this case) always leads to exact the same behaviour/result no matter what it is used to trigger it...</p>
</p>
<p>&#62;If you want that this do <strong>saveRow</strong>&#160;internally it will be <em>feature request</em> and not a <em>bug report</em>.</p>
<p>As mentioned above, "saveRow" is described explicitly in the "InlineEditing" section.</p>
<p>That jqGrid behaves different if saving a row fired by "keys:true" and "pressing Enter" or fired by a manual call of "saveRow" is IMHO not very consistent... and that this is even not mentioned in the docs turns things even worse, I think...</p>
<p>And as a plus: one has to check jqGrid - internal used / generated classnames by oneself for deciding if a row is added or edited despite jqGrid is able to do that by itself already as it does with the "keys:true" - thing? What if jqGrid devs rename the class name? Then you have to refactor all code... (BTW: already happend for example when adding a new row, the "id-prefix" of every input element in the row changed from "new_row" to "jqg[0-9]*")</p>
]]></description>
        	        	<pubDate>Fri, 19 Apr 2013 13:09:31 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28681</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28681</guid>
        	        	<description><![CDATA[<p>In the case there are misunderstanding. <strong>saveRow</strong> is old method. It should really always send <strong>oper=edit</strong> to the server if no other <strong>oper</strong> property are defined inside of <strong>extraparam</strong> option of <strong>saveRow</strong>&#160;method.</p>
<p>Inline editing don&#39;t suppurt currently any options <em>assosiated</em> with editing row. So I personally prefer usage of <strong>editRow</strong> with <strong>keys: true</strong> option. I never call <strong>saveRow</strong> explicitly in my code. In the way <strong>editRow</strong>&#160;calls internally with the options which I specified for <strong>editRow</strong>&#160;when the user press ENTER key.</p>
<p>If you use <strong>saveRow</strong>&#160;method you are responsible to call it with the correct options. For example you can first test the class of the row which you need to save. If it has class <strong>jqgrid-new-row</strong> then the row was created by <strong>addRow</strong> method. In the case you can call <strong>saveRow</strong>&#160;and include <strong>{oper: "add"}</strong> as the <strong>extraparam</strong>&#160;option of&#160;<strong>saveRow</strong>&#160;method. I recommend you to examine the code of <strong>inlineNav</strong> in the body of <strong>if(o.save) {...}</strong>. It does exactly what I described.</p>
<p>If you want that this do <strong>saveRow</strong>&#160;internally it will be <em>feature request</em> and not a <em>bug report</em>.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Thu, 18 Apr 2013 23:33:47 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28678</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28678</guid>
        	        	<description><![CDATA[<p>I re-read your post and "my bug" is not exactly the same you described.</p>
<p>In my case, using the method "saveRow" ALWAYS sends oper="edit" to the server but in case of a new added row with "addRow" it should send oper="add"...</p>
]]></description>
        	        	<pubDate>Thu, 18 Apr 2013 22:09:47 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28677</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28677</guid>
        	        	<description><![CDATA[<p>As I downloaded jqGrid a few days ago and as you can see here:</p>
<p><a href="http://picpaste.com/jqGrid-4.4.5-WXffrTlH.png" target="_blank">Version</a></p>
</p>
<p>I AM currently using jqGrid 4.4.5, so the bug seems NOT to be fixed..</p>
]]></description>
        	        	<pubDate>Thu, 18 Apr 2013 22:03:51 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28671</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28671</guid>
        	        	<description><![CDATA[<p>If I undersnad you correctly you describe the bug which I reported <a href="/blog/?page_id=393/bugs/class-jqgrid-new-row-will-be-added-by-addrow-but-never-removed/#p28527" target="_blank">here</a>. The bug fix is commeted <a href="https://github.com/tonytomov/jqGrid/commit/46a726cac1b871c318549b2189dacd3582c9867d" target="_blank">here</a>. So the bug is fixed in jqGrid 4.4.5. If you use jqGrid in the version less then 4.4.5 you need just upgrade your code.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Thu, 18 Apr 2013 19:28:46 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on "saveRow" method does not honor "oper"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28669</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/saverow-method-does-not-honor-oper#p28669</guid>
        	        	<description><![CDATA[<p>Hi everybody,</p>
<p>in InlineEditing when adding a row with "addRow" Method and "keys:true" and afterwards hitting "Enter" the "oper" &#8211; property in the AJAX Call correctly contains&#160; "add":</p>
<p><a href="http://picpaste.com/pics/jqGridAddEnter-ELlOjLzH.1366295869.jpg" target="_blank">Screenshot</a></p>
</p>
<p>When using the "saveRow" &#8211; method after adding a row with "addRow" the "oper" &#8211; property in the AJAX Call contains "edit":</p>
<p><a href="http://picpaste.com/pics/jqGridAddSave-UhPbrYic.1366295615.jpg" target="_blank"> Screenshot</a></p>
<p>Seems to be a Bug <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_wink.gif" alt=";)" /></p>
</p>
<p>Here is the code regarding the screenshots:</p>
<p>JS:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9523' value='Select Code' data-codeid='sfcode9523' /></p>
<div class='sfcode' id='sfcode9523'>
<p>....</p>
<p>$(&#39;#add&#39;)<br />&#160;&#160;&#160; .button()<br />&#160;&#160;&#160; .click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#test&#39;).jqGrid(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;addRow&#39;,<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;&#160;&#160;&#160;&#160; addRowParams: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; keys:true<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; );<br />&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160; $(&#39;#edit&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; .button()<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; .click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#test&#39;).jqGrid(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;editRow&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#test&#39;).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; {keys:true}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; $(&#39;#save&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; .button()<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; .click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#test&#39;).jqGrid(&#39;saveRow&#39;,$(&#39;#test&#39;).jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>....</p>
</div>
<p>HTML:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7234' value='Select Code' data-codeid='sfcode7234' /></p>
<div class='sfcode' id='sfcode7234'>&#60;table id=&#34;test&#34;&#62;&#60;/table&#62;<br />&#60;button id=&#34;add&#34; type=&#34;button&#34;&#62;Add&#60;/button&#62;<br />&#60;button id=&#34;edit&#34; type=&#34;button&#34;&#62;Edit&#60;/button&#62;<br />&#60;button id=&#34;save&#34; type=&#34;button&#34;&#62;Save&#60;/button&#62;</div>
]]></description>
        	        	<pubDate>Thu, 18 Apr 2013 17:37:02 +0300</pubDate>
        </item>
</channel>
</rss>