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

input field to default to numerical keypad

4 Answers 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 13 Jan 2014, 09:40 PM
I have seen mobile websites with input fields which bring up a numerical keypad by default (say for entering quantity or banking number, etc).

Is there a way to accomplish this with kendo?

4 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 15 Jan 2014, 11:25 AM
Hi Michael,

Kendo UI does not have control over the device keyboard by design. You can achieve this with the simple HTML elements like:

<input type="text" pattern="\d*"> for iOS
<input type="number"> for Android

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 15 Jan 2014, 03:24 PM
This: <input type="number"> worked for both devices.

This: <input type="text" pattern="\d*"> just resulted in an empty space.
0
Kiril Nikolov
Telerik team
answered on 17 Jan 2014, 08:28 AM
Hello Michael,

<input type="text" pattern="\d*"> on iOS7 device forces the number only keyboard, but does not work as expected on Android. Anyway I happy to hear that you have found the solution for your case.

Have a happy weekend!

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 20 Jan 2014, 04:03 PM
On my iOS7 device, 'pattern="\d*"' doesn't do anything. In fact, there won't even be an input field displayed.

<input type="number">  results in a number pad, though - on both devices.
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Michael
Top achievements
Rank 1
Share this question
or