<?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: processing property of form editing stay true in case of errors</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/processing-property-of-form-editing-stay-true-in-case-of-errors</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/processing-property-of-form-editing-stay-true-in-case-of-errors/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on processing property of form editing stay true in case of errors</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/processing-property-of-form-editing-stay-true-in-case-of-errors#p25022</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/processing-property-of-form-editing-stay-true-in-case-of-errors#p25022</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>there are bug in the form editing module in case of error processing. In the line <a href="https://github.com/tonytomov/jqGrid/blob/v4.2.0/js/grid.formedit.js#L622" target="_blank">622</a>&#160;for example:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4905' value='Select Code' data-codeid='sfcode4905' /></p>
<div class='sfcode' id='sfcode4905'>rp_ge[$t.p.id].processing = true;</div>
<p>the property <strong>processing</strong> will be set to <strong>true</strong>, but it will be set back to <strong>false</strong> not always (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.2.0/js/grid.formedit.js#L755" target="_blank">here</a>&#160;in the <strong>complete</strong> callback in case of "success" status only).</p>
<p>The easyest example where you can see the bug would be a simple local grid where you has <strong>editable:true</strong>&#160;property for some column, but don&#39;t define <strong>editurl</strong> option. You just call <strong>navGrid</strong> to has form editing buttons in the navigator. If you would open edit form and click "Submit" button one will see the error message <strong>$.jgrid.errors.nourl</strong>&#160;about empty <span style="text-decoration: underline;"><strong>only once</strong></span>. The second click on the "Submit" button do nothing and display no error message because <strong>processing</strong> property stay <strong>true</strong>.</p>
<p>The clicking "Submit" button in the grid with undefined <strong>editurl</strong>&#160;option is not important case, but it shows just that&#160;<strong>processing</strong>&#160;will be not clead in case of errors. In case of errors on the server side like server side validation where HTTP status code will be set to some error HTTP status code has the same problem.</p>
<p>I think that the code of <strong>editGridRow</strong> and&#160;<strong>delGridRow</strong> should be modified to fix the problem.</p>
<p>Best regards<br />Oleg&#160;</p></p>
]]></description>
        	        	<pubDate>Sat, 29 Oct 2011 13:34:55 +0300</pubDate>
        </item>
</channel>
</rss>