4 Answers, 1 is accepted
0
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
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.
This: <input type="text" pattern="\d*"> just resulted in an empty space.
0
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
<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.
<input type="number"> results in a number pad, though - on both devices.