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

Force soft keyboard up on Android and iOS

4 Answers 445 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 19 Mar 2013, 08:09 AM
Hi all,

I have a textarea for text input. When the text is input, a send button is clicked and the text is cleared. How to keep the soft keyboard up there after the text is cleared? 

Thanks.

4 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 21 Mar 2013, 08:22 AM
Hello Ralph,

I am afraid that your question is not directly related to KendoUI, but to general mobile development knowledge. I believe that this stackoverflow thread might help you.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ralph
Top achievements
Rank 1
answered on 27 Mar 2013, 08:00 AM
Hi,

After reading the link, I used the following method to obtain the focus.
I use the onclick property instead of data-click property to call my original function, which calls the focus() method of the textarea and makes the keyboard kept focused.

Thanks.

BR,
Ralph
0
Ralph
Top achievements
Rank 1
answered on 27 May 2013, 04:25 AM
Hi,

I found that my hack on iOS got some problem.

When user tap on the button, the keyboard does hide, and at the same time the function does not trigger! Only by tapping on the button again the function triggers and the keyboard is shown again.

I tried to use the property of data-click again but the keyboard is not focused anymore. Do we have any hacks on Kendo UI mobile for such kind of functional needs?
0
Petyo
Telerik team
answered on 29 May 2013, 06:15 AM
Hi Ralph,

If I understand you correctly, you may consider experimenting with delaying the execution of the code using setTimeout with a certain delay. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Ralph
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Ralph
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or