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 rolling back in changed event

Thread ID:





123286 Mar 3,2016 12:40 PM UTC Mar 7,2016 03:45 AM UTC WPF 1
Tags: DateTimeEdit
Martin Tichovsky
Asked On March 3, 2016 12:40 PM UTC


i have problem with rolling DateTime back, in changed event function. Here i have example

<syncfusion:DateTimeEdit x:Name="DateTimeEdit" Height="25"  Width="180" FontSize="14" CultureInfo="cs-CZ" IsEmptyDateEnabled="False"  DateTimeChanged="DateTimeChanged" Pattern="YearMonth" DisableDateSelection="True" />

And changed function

private void DateTimeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

            this.DateTimeEdit.DateTimeChanged -= DateTimeChanged;
 this.DateTimeEdit.DateTime = (DateTime?)e.OldValue;
            this.DateTimeEdit.DateTimeChanged += DateTimeChanged;

For example:

First step: if i choose April 2016, date rolling back, everything is ok.
Second step: if i choose April 2016 again, event have not been called. I must choose another month.

This function is important, because in changed function is validation proccess (in my case data comparation and save data check).

Thanks for answers

Mariappan S [Syncfusion]
Replied On March 7, 2016 03:45 AM UTC

Hi Martin,

We were able to reproduce the issue and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates


Please let me know if you have any questions.

Mariappan S


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