Keyboard Doesn't Go Away When RadMessageBox Is Shown

4 posts, 0 answers
  1. Josh
    Josh avatar
    22 posts
    Member since:
    Jun 2012

    Posted 23 Nov 2011 Link to this post

    I'm using a RadMessageBox to display some buttons after the user clicks "save". Normally when a standard MessageBox is shown, the keyboard goes away. This does not happen with the RadMessageBox.

    This sounds like a bug, but maybe it's on purpose. Either way, how can I get the keyboard to go away when the RadMessageBox is shown?
  2. Josh
    Josh avatar
    22 posts
    Member since:
    Jun 2012

    Posted 23 Nov 2011 Link to this post

    I'm able to get it to go away by focusing on another control.
  3. DevCraft banner
  4. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 24 Nov 2011 Link to this post

    Hello Josh,

     Thank you for writing.
    Currently the APIs that the Windows Phone environment provides offer little for keyboard interactivity. The only thing that a programmer can do to interact with the keyboard is to set the InputScope property of a text box. There are no notifications for keyboard shown or closed and there is no way to know if a keyboard is currently shown. Since there is no API RadMessageBox does not know how to hide the keyboard.

    The only solution is to iterate over the whole Silverlight element tree on the current page, search for focused text box and remove the focus. We will consider implementing this in a future release. In the mean time I hope that manually removing the focus is acceptable.

    Please write again if you have other feedback you would like to share.

    All the best,
    Victor
    the Telerik team

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

  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 24 Nov 2011 Link to this post

    Hello Josh,

     Or we could just focus the message box or a button in the message box. :)

    Kind regards,
    Victor
    the Telerik team

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

Back to Top