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.
Syncfusion Feedback

DateTimeEdit - Handle invalid dates and out of range - DateValidationError

Thread ID:

Created:

Updated:

Platform:

Replies:

106398 Jan 3,2013 05:19 PM UTC Jan 19,2013 10:57 AM UTC WPF 1
loading
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.

Thanks!

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.

Regards,
Karuppasamy P



DateTimeEditDemo_f30c6b54.zip

CONFIRMATION

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.

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

;