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
1375
Testing UltraDateTimeEditor changes in ValueChanged method
posted

 Hi,

During the ValueChanged event of the UltraDateTimeEditor, I need to test whether the control is actually being changed by a user. For UltraTextEditors, I can test the Focused property.

 The Focused property on the UltraDateTimeEditor works fine if the date is manually entered or the up/down arrows are used to change the date. However, if selecting a date from the dropdown, the focused property is always false.

If I used the AfterCloseUp event, is there a way to know if the date has changed from within the AfterCloseUp method.

 Thanks.

Parents
  • 37774
    posted

    If I read your question correctly, you're trying to determine if the user actually changed the value instead of something in your code.  Why not just check the IsInEditMode property?  I'm not sure if this is enough (i.e. what your code is doing and what you're trying to distinguish), but this might be a lot easier than trying to keep several flags and check other properties.

    -Matt

Reply Children