<?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: Server validating data + error warning</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning</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/server-validating-data-error-warning/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Server validating data + error warning</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning#p17958</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning#p17958</guid>
        	        	<description><![CDATA[<p>HEllo,</p>
<p>Could you please include the development version in order to see what is happen.</p>
<p>Thanks.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 16 Jun 2010 13:54:59 +0300</pubDate>
        </item>
        <item>
        	<title>czita on Server validating data + error warning</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning#p17825</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning#p17825</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
</blockquote>
<blockquote>
<p>2) You can use a succesfunc - to this function we pass the response.</p>
</blockquote>
<blockquote>
<p>Note that since we use a jQuery complete event in ajax you should parse your JSON response something like</p>
</p>
<p>function mysuccces(res)</p>
<p>{</p>
<p>myjson = $.jgrid.parse(res.responseText);</p>
<p>// now you have what you want</p>
<p>}</p>
</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Hi Tony,</p>
</p>
<p>thanks for kick me to right direction. 🙂</p>
</p>
<p>Now I am using aftersavefunc for handle response. It&#39;s works almost right, but one problem is here. For example I do this like user:</p>
<p>1) Edit grid row</p>
<p>2) I change some data for example &#39;Client 1&#39; to &#39;Client 2&#39; and press ENTER</p>
<p>3) Grid throw error message because note field is not valid. (server side validate)</p>
<p>4) Grid row is in edit mode again.</p>
<p>5) I will not repair data and leave editing grid (press ESC)</p>
<p>6) In afterrestorefunc is $(&#39;#grid&#39;).trigger(&#39;reloadGrid&#39;); I need get actual data from server, but this throw error in Firebug and request is not send.</p>
</p>
<p>Do you know how solve this?</p>
</p>
<p>May be there is other better solution. I don&#39;t know.</p>
</p>
<p>You can see and try it at <a href="http://sandbox.jipas.cz/jqgrid/" rel="nofollow" target="_blank">http://sandbox.jipas.cz/jqgrid/</a></p>
</p>
<p>Thanks for help me</p>
<p>Regards czita</p>
]]></description>
        	        	<pubDate>Wed, 09 Jun 2010 12:32:28 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Server validating data + error warning</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning#p17808</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning#p17808</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks.</p>
<p>1) This is a bug. In this case we should call a restoreRow to restore the data and make the row again editable.</p>
<p>The problem is fixed.</p>
<p>2) You can use a succesfunc - to this function we pass the response.</p>
<p>Note that since we use a jQuery complete event in ajax you should parse your JSON response something like</p>
</p>
<p>function mysuccces(res)</p>
<p>{</p>
<p>myjson = $.jgrid.parse(res.responseText);</p>
<p>// now you have what you want</p>
<p>}</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 08 Jun 2010 15:56:28 +0300</pubDate>
        </item>
        <item>
        	<title>czita on Server validating data + error warning</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning#p17719</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/server-validating-data-error-warning#p17719</guid>
        	        	<description><![CDATA[<p>Hi Tony and others,</p>
<p>I am finding this solution:</p>
</p>
<p>User edit inline row. After press key &#39;enter&#39; I need validate data on server side. If will error thrown row don&#39;t save and user will be noticed (by js alert for example). Row will stay as was filled in and user can repair data and send them again.</p>
</p>
<p>I think, there are two solutions</p>
<p>1) Server throw error http response code (for example 403). I must handle this error over &#39;errorfunc&#39; defined in editRow. But after errorfunc user can&#39;t send data to server again. There is my not complete working solution <a href="http://sandbox.jipas.cz/jqgrid/" rel="nofollow" target="_blank">http://sandbox.jipas.cz/jqgrid/</a></p>
<p>2) Server throw some JSON for example and I will handle data, but I don&#39;t know how. <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
</p>
<p>Can anybody kick me? <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /> Thanks</p>
]]></description>
        	        	<pubDate>Thu, 03 Jun 2010 21:21:32 +0300</pubDate>
        </item>
</channel>
</rss>