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.
Hello Michael,
Thanks for attached sample. I saw the mentioned behavior, but I suppose that something into your code override our default behavior of BeforeEnterEditMode event. I try to reproduce your scenario in a small sample and there everything works properly. Could you please take a look at the attached sample and video file and let me know if you have any questions.
Regards
I don't have an override for BeforeEnterEditMode.
You didn't really try to create my scenario. I had already done that. All your sample did was use an UltraDateTimeEditor and inherit it. If that is all I wanted to accomplish I would not have created a user control or inherited it. Most controls if simply dragged and dropped will work. If that is all I wanted I would not have attached a sample to provide insight as to how I am using the control.
Both UltraNumericEditor and UltraDateTimeEditor are built identically except a few designer options. One works and one doesn't. All of the events that I have tested work for UltraDateTimeEditor including KeyDown, MouseDown, and many more. KeyDown was in my sample and it fires every time. The only one I cannot get to work is BeforeEnterEditMode.