<?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: Validation strategy for cell and inline editing</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/validation-strategy-for-cell-and-inline-editing</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/validation-strategy-for-cell-and-inline-editing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Renso on Validation strategy for cell and inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/validation-strategy-for-cell-and-inline-editing#p18882</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/validation-strategy-for-cell-and-inline-editing#p18882</guid>
        	        	<description><![CDATA[<p>I want to know what the pattern/strategy is for validation for handling server-side errors during cell-editing as well as inline-editing?</p>
<p>1. What callback function can I use for inline editing when the server throws and error, seems cell-editing has some callback I can plug into that inline does not have?The issue I ran into is as follows to help explai the reason for my question, and let me know what is the recommended approach for solving it: Add a new address, requires street address 1, city, state, country and zip, but only requires state if country = USA or Canada and will not save the record to the database unless the entire record is correct, with inline editing there is no callback function I can plug into to handle this error and I wanted to use inline since the user needs to specify ALL required field before ajax call to save. However inline seems to not expose any call backs. So with cell-editing, each cell is saved individually, handels errors from server, but cannot save an address without a State unless the user marks the country as non USA or Canada, and the server also does not allow to change the country to non USA or Canada while a State is specified, catch 22, how should this situation be approached using jqGrid?</p>
</p>
<p>2. Also, what is the approach when using cell or inline editing when you want to add a new row?</p>
]]></description>
        	        	<pubDate>Fri, 30 Jul 2010 17:40:12 +0300</pubDate>
        </item>
</channel>
</rss>