﻿<?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 - validate</title><link>http://www.intersoftsolutions.com/Community/Tags/validate/</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>WebInput OnValidateError Client Side Event Not Firing - Urgent!</title><link>http://www.intersoftsolutions.com/Community/Tags/validate/</link><pubDate>Wed, 24 Dec 2014 13:15:46 GMT</pubDate><dc:creator>sample4170</dc:creator><category>WebInput</category><category>error</category><category>validate</category><category>webc</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I've been facing lots of issues with Intersoft and I've been posting all of them just to get NO REPLIES. This is making it tough for the users alot. At the least the customer support should be good. I hope there will be a response for this.&lt;/p&gt;&lt;p&gt;The issue is, I am using a WebInput control for Date. It uses both DisplayFormat and EditFormat. For EditFormat, I've the validation.&amp;nbsp;An associated client side event is OnValidateError. Though it worked fine the first time I tried, now the Event is&amp;nbsp;invoking the JScript function multiple times. But it is calling the Default ErrorWindow Response correctly.&lt;/p&gt;&lt;p&gt;&amp;lt;ISWebInput:WebInput ID="WebInput1" runat="server" MinDate="1900-01-01" ToolTip="Format: yyyy-MM"&amp;gt;&lt;br&gt;&amp;lt;CultureInfo CultureName="en-US"&amp;gt;&lt;br&gt;&amp;lt;/CultureInfo&amp;gt;&lt;br&gt;&amp;lt;DisplayFormat Format="yyyy-MM" IsEnabled="False"&amp;gt;&lt;br&gt;&amp;lt;ErrorWindowInfo IsEnabled="False"&amp;gt;&lt;br&gt;&amp;lt;/ErrorWindowInfo&amp;gt;&lt;br&gt;&amp;lt;/DisplayFormat&amp;gt;&lt;br&gt;&amp;lt;DateTimeEditor IsEnabled="True"&amp;gt;&lt;br&gt;&amp;lt;/DateTimeEditor&amp;gt;&lt;br&gt;&amp;lt;EditFormat IsEnabled="True" Format="yyyy-MM"&amp;gt;&lt;br&gt;&amp;lt;MaskInfo MaskExpression="0000-00"&amp;gt;&amp;lt;/MaskInfo&amp;gt;&lt;br&gt;&amp;lt;ErrorWindowInfo IsEnabled="false"&amp;gt;&amp;lt;/ErrorWindowInfo&amp;gt;&lt;br&gt;&amp;lt;/EditFormat&amp;gt;&lt;br&gt;&amp;lt;HighLight IsEnabled="True" Type="Phrase" /&amp;gt;&lt;br&gt;&amp;lt;EditFormatClientSideEvents OnValidateError="WebInput1_OnValidateError" /&amp;gt;&lt;br&gt;&amp;lt;ClientSideEvents OnAfterValueChanged="WebInput1_OnAfterValidate"&amp;gt;&amp;lt;/ClientSideEvents&amp;gt;&lt;br&gt;&amp;lt;/ISWebInput:WebInput&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;span face="Consolas" color="#0000ff"&gt;&amp;lt;script language="javascript"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function WebInput1_OnValidateError() {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("lblError").innerText = "Please Enter Correct Date in yyyy-MM format.";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function WebInput1_OnAfterValidate() {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("lblError").innerText = "";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face="Consolas" color="#0000ff"&gt;The reason I am using this JScript function is because, the default ErrorWindow is showing the error in different location. I've attached the screenshot for reference.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face="Consolas" color="#0000ff"&gt;I am losing my patience already with Intersoft, because I was first using WebCalendar which had a rendering problem when deployed. I posted here and no replies. I replaced it with WebInput and now, this.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face="Consolas" color="#0000ff"&gt;I really hope someone replies to this.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face="Consolas" color="#0000ff"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Multiple Row Paste Validation</title><link>http://www.intersoftsolutions.com/Community/Tags/validate/</link><pubDate>Thu, 28 Jan 2010 23:00:50 GMT</pubDate><dc:creator>danjransom@gmail.com</dc:creator><category>validate</category><category>grid</category><category>rows</category><category>paste</category><description>&lt;p&gt;The "Paste Multiple Rows from Clipboard" feature sounds great in theory, but in practice we are finding it impossible to implement in a real-world scenario. &lt;strong&gt;As far as we can tell, there is no way to highlight bad data inserted into the grid when using this feature.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For example: we have a grid with a mix of numeric, date, text, and valuelist (dropdown) columns. Some of the fields are set to require input. When users enter data in the new row at the top of the grid all of the cells are validated ensuring good values. However, using the "Paste Multiple Rows from Clipboard" feature,&lt;strong&gt; users can put in values that are in no way valid&lt;/strong&gt;, i.e. text in a date field, dates in a numeric field, value list items that are not in the list, and &lt;strong&gt;even&amp;nbsp;NULL values in a required field&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Despite the extremely limited amount of documentation on this feature, we have been able to apply some of our own validation using the &lt;span style="font-size: 13px"&gt;OnAddPendingChanges client event. However, even though we can blank out celss&amp;nbsp;or apply default values to the added fields, we can find no way to highlight these bad cells to inform the user of the invalid data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;It would be great if we could just run row.Vaidate() or row.GetElement() but we can't access the rows inserted by the multiple row paste feature using GetRow(#) or any other meathod.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How can we highlight (with color) specific inserted cells to denote bad pasted values?&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>