RadCalculatorPicker

7 posts, 0 answers
  1. Rick Hodder
    Rick Hodder avatar
    17 posts
    Member since:
    Jul 2004

    Posted 27 Apr 2012 Link to this post

    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

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 May 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Rick Hodder
    Rick Hodder avatar
    17 posts
    Member since:
    Jul 2004

    Posted 02 May 2012 Link to this post

    Thanks for replying Maya,

    Do you have any suggestions for how to accomplish what I'm trying to do?
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 03 May 2012 Link to this post

    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 >>

  6. Rick Hodder
    Rick Hodder avatar
    17 posts
    Member since:
    Jul 2004

    Posted 03 May 2012 Link to this post

    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
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 07 May 2012 Link to this post

    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 >>

  8. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 22 May 2012 Link to this post

    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
Back to Top
DevCraft banner