<?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: class "jqgrid-new-row" will be added by addRow but never removed</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/class-jqgrid-new-row-will-be-added-by-addrow-but-never-removed</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/class-jqgrid-new-row-will-be-added-by-addrow-but-never-removed/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on class "jqgrid-new-row" will be added by addRow but never removed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/class-jqgrid-new-row-will-be-added-by-addrow-but-never-removed#p28561</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/class-jqgrid-new-row-will-be-added-by-addrow-but-never-removed#p28561</guid>
        	        	<description><![CDATA[<p>Thanks Oleg,</p>
<p>I have fixed this too.</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 02 Apr 2013 12:49:42 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on class "jqgrid-new-row" will be added by addRow but never removed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/class-jqgrid-new-row-will-be-added-by-addrow-but-never-removed#p28527</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/class-jqgrid-new-row-will-be-added-by-addrow-but-never-removed#p28527</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>there are bug with editing row added by <strong>addRow</strong>. The class "jqgrid-new-row" will be used by Save button of inlineNav (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.inlinedit.js#L546-L547" target="_blank">here</a>) to set operation of editing to "add" instead of "edit". In the same way the class "jqgrid-new-row" will be used by <strong>restoreRow</strong>&#160;(see <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.inlinedit.js#L398-L400" target="_blank">here</a>) to delete previously added row.</p>
<p>The problem is that class "jqgrid-new-row" will be added only and never removed. So if one first add a row and later edit it <strong>saveRow</strong> will send to the server <em>oper=add</em> instead of <em>oper=</em><em>edit</em>.</p>
<p>To fix the bug one needs remove class "jqgrid-new-row" from the row after successfully saving. I think that one should insert removing of the class inside of <strong>saveRow</strong> code (for example before <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.inlinedit.js#L288" target="_blank">the line</a> and <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.inlinedit.js#L328" target="_blank">this one</a>). So that any successful saving of row previously added by <strong>addRow</strong>&#160;will remove the class "jqgrid-new-row" from the row.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 26 Mar 2013 17:30:43 +0200</pubDate>
        </item>
</channel>
</rss>