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
35
UltraDateTimeEditor : turning off the value changed event when in dropdown mode
posted

 I have an UltraDateTimeEditor control that when the date value changes it does some time critical work.  And I noticed that when the control is in dropdown state, meaning it is showing the calendar, when ever a month is selected or a day in the calendar is selected that the value changed event is called.  I want to only have the value changed event called when the dropdown state is closed and not when it is opened.  Can anyone tell me the cleanest way to suspend the value changed event when the control is in the dropdown state?

  • 469350
    Verified Answer
    Offline posted

    I think the control has as DroppedDown property to tell you when the drop down is dropped down. If not, then you could create a flag and set it in the BeforeDropDown and AfterCloseUp events to track when it is dropped down.

  • 1175
    posted

    Hi 

    I think, you should use  

     private void ultraDateTimeEditor1_AfterCloseUp(object sender, EventArgs e)
            {

            }

     

    Regards

    Asad