﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Custom row validation</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-row-validation/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Custom row validation</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-row-validation/</link><pubDate>Tue, 05 Jan 2010 23:30:19 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid</category><description>&lt;p&gt;For row validation in WebGrid, you are correct, please use the OnRowValidate event to handle any row validation that you will require.&lt;/p&gt;&lt;p&gt;An article titled "How-to: Validate that a selected column cannot be empty when adding a new row using OnRowValidate" in the WebGrid documentation has already been provided for handling an empty column during row insertion. The article handle the error by showing an alert message when the validation fails. In your case, you will need to update the error panel control if the validation fails.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Custom row validation</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-row-validation/</link><pubDate>Tue, 05 Jan 2010 14:18:36 GMT</pubDate><dc:creator>Gmontes</dc:creator><category>WebGrid</category><description>&lt;p /&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;We are looking into enforcing validations for row editing on WebGrid. We are thinking along the lines of:&lt;/p&gt;
&lt;p&gt;- Required entry&lt;/p&gt;
&lt;p&gt;- String length range&lt;/p&gt;
&lt;p&gt;- Data Type Check&lt;/p&gt;
&lt;p&gt;- Range (min, max values)&lt;/p&gt;
&lt;p&gt;- Regular Expressions&lt;/p&gt;
&lt;p&gt;- Compare operations (equal, not equal, greather than, etc).&lt;/p&gt;
&lt;p&gt;It looks like the only real validation supported by WebGrid is 'Required' and for everything else we should do some sort of custom handling on the onRowValidate event. Is this correct? Is there some other event/feature that we should look into? We have some kind of error panel control where every error message should be displayed.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>