This is a migrated thread and some comments may be shown as answers.

RadCalculatorPicker

6 Answers 78 Views
Calculator
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 27 Apr 2012, 04:04 PM
Is there a key to press that closes the RadCalculatorPicker?

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

Sort by
0
Maya
Telerik team
answered on 02 May 2012, 07:50 PM
Hello Rick,

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.  

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Rick
Top achievements
Rank 1
answered on 02 May 2012, 09:59 PM
Thanks for replying Maya,

Do you have any suggestions for how to accomplish what I'm trying to do?
0
Maya
Telerik team
answered on 03 May 2012, 07:55 AM
Hello Rick,

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.

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Rick
Top achievements
Rank 1
answered on 03 May 2012, 08:30 PM
Once the calculator picker is open, I dont see a way to close it (from the keyboard) without clicking on another control. I have tried overriding the KeyUp and KeyDown of the control but those events dont fire while the picker is open.

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
0
Maya
Telerik team
answered on 07 May 2012, 04:33 PM
Hi Rick,

We will consider implementing functionality for predefining the default command behavior of RadCalculator.
Thank you for your feedback. 

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Lancelot
Top achievements
Rank 1
answered on 22 May 2012, 07:56 PM
Please disregard the attached photo, my intended workaround has unintended side effects 

There doesnt appear to be a way for me to remove the attachment or delete this post :-/
Lancelot
Tags
Calculator
Asked by
Rick
Top achievements
Rank 1
Answers by
Maya
Telerik team
Rick
Top achievements
Rank 1
Lancelot
Top achievements
Rank 1
Share this question
or