I would like to be able to make the picker close itself when the user presses Enter.
I tried catching the KeyUp and KeyDown events, but they only seem to apply to the button that launches the picker. Once the picker is visible, the key events no longer fire.
The only way to close the picker is to click on another control.
Is there a way I can hook into this?
Thanks
6 Answers, 1 is accepted
Generally, Enter key is used for performing an operation (it executes the last operation on the calculated value) and changing its behavior will break the whole logic behind.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Do you have any suggestions for how to accomplish what I'm trying to do?
Could you clarify what is the behavior that you would expect on pressing the Enter key ? Do you require its whole functionality to be removed ?
Thanks in advance for your feedback.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Pressing the tab key (which I would expect to move to the next control in the taborder) doesnt move and doesnt close it.
Esc (the key I would expect to close a dropdown) resets the value, thereby losing the calculation
I know that I should be able to close the dropdown by setting IsDropDownOpen to false, but I dont know where to put that line of code.
Hope this makes things clearer
We will consider implementing functionality for predefining the default command behavior of RadCalculator.
Thank you for your feedback.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
There doesnt appear to be a way for me to remove the attachment or delete this post :-/
Lancelot