﻿<?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 - Handle Filer Row Errors</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Handle-Filer-Row-Errors/</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>Handle Filer Row Errors</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Handle-Filer-Row-Errors/</link><pubDate>Thu, 01 Oct 2009 03:42:17 GMT</pubDate><dc:creator>yudi@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to avoid users enter invalid data/format into filter row of DateTime data type column, I suggest you to use “CalendarDropdown” as the column EditType. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: segoe ui; color: #1f497d"&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: segoe ui; color: #1f497d"&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="BirthDate" DataMember="BirthDate"
    DataType="System.DateTime" EditType="CalendarDropdown"
    Name="BirthDate" Width="100px"&amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt; mso-themecolor: text2; mso-fareast-font-family: simsun; mso-fareast-language: zh-cn; mso-ansi-language: en-us; mso-bidi-language: ar-sa"&gt;By using this kind of edit type on the DateTime data type column, the column can only be edited in CalendarDropDownStyle. This will ensure that the value entered into this column will always in a proper format.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Handle Filer Row Errors</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Handle-Filer-Row-Errors/</link><pubDate>Thu, 01 Oct 2009 00:24:05 GMT</pubDate><dc:creator>gordont</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am really sorry but the event only in client side, for now WebGrid didn't have server side event to handle the error. If you want, you can submit this as feature request in our developer network &amp;gt;&amp;gt; My Community Center &amp;gt;&amp;gt; Product Feedback so our development team can check the possibility to implement this feature.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>Handle Filer Row Errors</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Handle-Filer-Row-Errors/</link><pubDate>Tue, 29 Sep 2009 04:23:57 GMT</pubDate><dc:creator>uk.codeguru@googlemail.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;Thanks for the response. But, how do we trap this error on the server side as well? Because we have this unhandled error getting logged in our error log whenever this error happens and our client wants us to handle this error.&lt;/p&gt;</description></item><item><title>Handle Filer Row Errors</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Handle-Filer-Row-Errors/</link><pubDate>Tue, 29 Sep 2009 00:52:06 GMT</pubDate><dc:creator>gordont</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use OnUnhandledError client side event to change the error message. Below is the sample:&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnUnhandledError(controlId, tblName, lastRequestObject, errorString)
{
    var grid = ISGetObject(controlId);
    grid.SetIdle();
    grid.IsInProgress = false;
    grid.SetStatus1("", "ready", "CommonText/Ready")

    alert("String was not recognized as a valid date");
    return false;
}&lt;/pre&gt;

&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>Handle Filer Row Errors</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Handle-Filer-Row-Errors/</link><pubDate>Mon, 28 Sep 2009 04:47:01 GMT</pubDate><dc:creator>uk.codeguru@googlemail.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;How do we validate the data user enters into the FilterRow? &lt;/p&gt;
&lt;p&gt;I have scenerios where there is a Date Column and the user is entering some invalid data/format into its Filter and trying to do a filter. WebGrid throws out an error saying the date format is not correct. &lt;/p&gt;
&lt;p&gt;How do I handle those errors so that I can show my custom message instead of the standard WebGrid Error window.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>