<?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: Can't re-submit inline edited row after validation error from server</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cant-re-submit-inline-edited-row-after-validation-error-from-server</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/cant-re-submit-inline-edited-row-after-validation-error-from-server/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dp on Can't re-submit inline edited row after validation error from server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cant-re-submit-inline-edited-row-after-validation-error-from-server#p29041</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cant-re-submit-inline-edited-row-after-validation-error-from-server#p29041</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>&#160; I have an issue where I can&#39;t re-submit an inline edited row after a validation error is returned from the server. &#160;I have an afterSave function which processes the results of the AJAX call and displays a message to the user. &#160;In the case of an error, I also call jqGrid(&#39;setSelection&#39;, rowid) for the row that was being edited so the user can correct their error and re-submit. &#160;Everything appears to work except the fact that the row will no longer submit by pressing the Enter key or cancel editing by pressing Esc. &#160;I would expect that the setSelection is acting as if a user clicked the row for editing and all functionality would be available. &#160;Is there something I am missing? &#160;Thanks.</p>
</p>
<p>**UPDATE</p>
<p>I was able to get around the issue described above by using successfunc instead of aftersavefunc. &#160;However, I now have a different issue. &#160;After a successful edit of a row, I am using resetSelection to unselect the row but the row is still selected. &#160;The selection color disappears when resetSelection fires but all of the input elements are still visibile. &#160;Any ideas?</p>
</p>
<p>**UPDATE 2</p>
<p>I got around the second issue by calling saveRow with &#39;clientArray&#39; as the url (to avoid a server call and preserve the data) for the edited row and then calling restoreRow. &#160;This seems like a hack and I would like to know the correct way to do this. &#160;Maybe there is a bug here?</p>
]]></description>
        	        	<pubDate>Thu, 20 Jun 2013 18:03:50 +0300</pubDate>
        </item>
</channel>
</rss>