We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DateTimeEdit - Handle invalid dates and out of range - DateValidationError

Thread ID:





106398 Jan 3,2013 05:19 PM UTC Jan 19,2013 10:57 AM UTC WPF 1
Tags: Tools
David Rose
Asked On January 3, 2013 05:19 PM UTC

I want to be able to alert the user when an invalid or out of range entry is entered. I was using dateValidationError event on the WPF DatePicker, but I don't see a similar event on the DateTimeEdit.

We are using the CanEdit=True.


Karuppasamy P [Syncfusion]
Replied On January 19, 2013 10:57 AM UTC

Hi David,

Sorry for the delay in getting back to you.

We have created a sample based on your requirement and you can download the sample from the below link.

In this sample, we have created the custom property Date to validate the DateTime in DateTimeEdit control through ValidatesOnDataErrors in binding and we have overriden the Validation border while DateTimeEdit control get focused by custom style which collapsed the FocusBorder and gives the validation style as you have required.

Please let us know if you have any queries.

Karuppasamy P



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon