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.
Unfortunately, activation email could not send to your email. Please try again.

DateTimeEdit - Handle invalid dates and out of range - DateValidationError

Thread ID:





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

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 05:57 AM

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.

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.