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
405
Handling Keypress event in the ClickToAddAppointmentUIElement
posted

In my UltraDayView control I am trying to respond to the user typing in the "Click to Add Appointment" area.  I want to do a custom function on each keypress when the user types something in there.  I have been trying to figure out how to catch the KeyPress event in this control but I'm having difficulty.

I tried using a CreationFilter, but there doesn't seem to be any exposure of the OnKeyPress event, like there is for OnClick.  Can someone post some sample code, that shows how to handle the KeyPress event in the Click to Add Appointment area?  That would be very helpful.

I also considered using the KeyMappings approach, but I want to handle every key that they type into this area (not just 1 or 2 specific keys), so it isn't clear that I can do it that way.

FYI I am using C#.  I have tried this with Infragistics version 7.1 and version 8.3, both without success.

Thanks in advance for your help.