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

Keyboard Doesn't Go Away When RadMessageBox Is Shown

3 Answers 67 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Josh
Top achievements
Rank 1
Josh asked on 23 Nov 2011, 08:25 PM
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?

3 Answers, 1 is accepted

Sort by
0
Josh
Top achievements
Rank 1
answered on 24 Nov 2011, 05:56 AM
I'm able to get it to go away by focusing on another control.
0
Victor
Telerik team
answered on 24 Nov 2011, 12:24 PM
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 >>

0
Victor
Telerik team
answered on 24 Nov 2011, 01:18 PM
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 >>

Tags
MessageBox
Asked by
Josh
Top achievements
Rank 1
Answers by
Josh
Top achievements
Rank 1
Victor
Telerik team
Share this question
or