in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

DateEdit spin event fires but I have found no easy way to retrieve the new value after spinning

Last post 6/29/2007 4:37 AM by Addison Pauray. 0 replies.
Page 1 of 1 (1 items)
Sort Posts:
Previous Next
  • 6/29/2007 4:37 AM

    DateEdit spin event fires but I have found no easy way to retrieve the new value after spinning

    I use the DateEdit on a form and like to update data everytime the date is changed by spinning. The DateTime Property isn't changed at all, when spinning is applied an no event besides spin is fired.

    My current solution now is to start a timer and read the text when the timer fires and convert the date by hand. This is not satisfactory.

    Proposed solutions:

    1. AfterSpin Event with ProposedDateTime in EventArgs
    2. or Spinning should fire DateTimeChanged and the other events
    3. or an extra Enum that allows Customization of this behaviour

    Wait a minute. My last point made me look again, and ... I found out what to do, but it works quite contrary to the documentation.

    I had to change  EditValueChangedFiringMode from default to buffered. Then all events that didn't fire before are working now as expected:

    dateFrom_EditValueChanging
    dateFrom_TextChanged
    dateFrom_EditValueChanged
    dateFrom_DateTimeChanged

    That means Buffered in this case doesn't  delay the events but is the only way to get the events.

    I think this is a bug or at least a documentation bug.

    Regards,
    Uwe Wittig

     

     

     

    Filed under: ,
Page 1 of 1 (1 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED