<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Trigger same validation on two properties ...</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Trigger same validation on two properties ...</description>
  <pubDate>Wed, 15 Apr 2026 12:22:21 -700</pubDate>
  <lastBuildDate>Tue, 14 Dec 2010 15:01:15 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2368</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Trigger same validation on two properties ... : Thanks. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2368&amp;PID=9402#9402</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2368<br /><strong>Posted:</strong> 14-Dec-2010 at 3:01pm<br /><br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Thanks.]]>
   </description>
   <pubDate>Tue, 14 Dec 2010 15:01:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2368&amp;PID=9402#9402</guid>
  </item> 
  <item>
   <title>Trigger same validation on two properties ... : as123;If I understand correctly,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2368&amp;PID=9394#9394</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2368<br /><strong>Posted:</strong> 13-Dec-2010 at 6:05pm<br /><br />as123;<div><br></div><div>If I understand correctly, it sounds like what you're trying to do is more of a UI thing than DevForce. You might want to take a look at INotifyDataErrorInfo interface and see what event handler you can customize to achieve what you want to do.&nbsp;</div><div><br></div><div>Also if you're binding to a DataGrid, each cell's error is handled by the following:&nbsp;</div><div><br></div><div>"<span ="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; line-height: normal; font-size: 13px; ">The&nbsp;<span><span ="self">DataGrid</span></span>&nbsp;supports cell-level property validation and row-level object validation. If a validation exception is encountered in the property setter, the cell editing control displays its error state. The&nbsp;<span><a href="http://msdn.microsoft.com/en-us/library/system.windows.c&#111;ntrols.datagridcell.isvalid%28v=VS.95%29.aspx" target="_blank">DataGridCell<span ns="">.</span>IsValid</a></span>,&nbsp;<span><a href="http://msdn.microsoft.com/en-us/library/system.windows.c&#111;ntrols.datagridrow.isvalid%28v=VS.95%29.aspx" target="_blank">DataGridRow<span ns="">.</span>IsValid</a></span>, and&nbsp;<span><a href="http://msdn.microsoft.com/en-us/library/system.windows.c&#111;ntrols.datagrid.isvalid%28v=VS.95%29.aspx" target="_blank">DataGrid<span ns="">.</span>IsValid</a></span>&nbsp;properties are all set to&nbsp;<span><span ="">false</span></span>. The&nbsp;<span><span ="self">DataGrid</span></span>&nbsp;will not exit cell editing mode until the validation error is resolved."</span></div><div><span ="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; line-height: normal; font-size: 13px; "><br></span></div><div><span ="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; line-height: normal; font-size: 13px; "><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; ">This means that you can set DataGridCell.IsValid to true to override the error marking.</span></span></div><div><span ="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; line-height: normal; font-size: 13px; "><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; "><br></span></span></div><div><span ="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; line-height: normal; font-size: 13px; "><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; ">Hope this helps.</span></span></div>]]>
   </description>
   <pubDate>Mon, 13 Dec 2010 18:05:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2368&amp;PID=9394#9394</guid>
  </item> 
  <item>
   <title>Trigger same validation on two properties ... : Is it possible to trigger a specific...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2368&amp;PID=9372#9372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=761" rel="nofollow">as123</a><br /><strong>Subject:</strong> 2368<br /><strong>Posted:</strong> 10-Dec-2010 at 4:02pm<br /><br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Is it possible to trigger a specific validation based on two properties, but mark only one of the properties as in error on the client?&nbsp;<div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For example, let us say we have FromDate and ToDate properties on an entity. Is it possible to trigger validations when either FromDate or ToDate is changed (which of course, is possible), but notify only ToDate in either case so that only ToDate is shown as in error. Is there any trigger setting which can accomplish this?&nbsp;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Currently (DevForce 6.0.6), both properties are shown with error marking (red box around - INotifyDataErrorInfo) on the silverlight client, and the ValidationSummary (Silverlight control) reports the same error twice as both properties are in error.<div><br></div><div>Thanks</div></div>]]>
   </description>
   <pubDate>Fri, 10 Dec 2010 16:02:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2368&amp;PID=9372#9372</guid>
  </item> 
 </channel>
</rss>