Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
UltraDateTimeEditor - ValueChanged event fires too early
posted

When keying a date into an UltraDateTimeEditor, the ValueChanged event fires when 5 digits are entered .. for example  1  2  3  1 0 will fire ValueChanged, and the value is Dec 31, 2000.  This makes subscribing to the ValueChanged event handler unusable.  Typically, my users would enter 2 to 4 digit years, never a 1 digit year.

However, when a user chooses a date from the calendar drop down, I want to immediately respond to this choice.  I can only do this by subscribing to the ValueChanged event, but that is unreliable.  Instead, I must use either Leave or AfterExitEditMode, which isn't as slick and responsive as I want my application to be.

So I really have two issues:

  • How to suppress ValueChanged when only 1 digit was entered for the year
  • How to capture that the user picked a date from the drop calendar

An answer to either of these would give me something to work with.  Thanks!