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
1871
UltraDateTimeEditor event BeforeEnterEditMode not firing.
posted

Usually when I use BeforeEnterEditMode it is to prevent the user from entering into the control by simply canceling. I use it this way because certain themes text display too light when the control is not enabled. I could use read only but most of our customers do not like that style. I cannot get the UltraDateTimeEditor control BeforeEnterEditMode event to fire. No matter what I try. MouseDown does not fire it and changing the date does not even fire the event. All the other Infragistics controls like UltraNumericEditor, UltraCurrencyEditor, and UltraTextEditor fire the event. Should I be using a different event?

I have attached a sample that shows the event is not firing with an UltraDateTimeEditor but that it does work with an UltraCurrencyEditor.

DateTimeBeforeEnterEditMode.zip
Parents
  • 469350
    Verified Answer
    Offline posted

    The event never fires because you are settting AlwaysInEditMode to true. So the control is always in EditMode as soon as it is created and never leaves it.

Reply Children
No Data