I know that currently you do not have a datepicker in KendoUI mobile.
Firstly, is this a planned release at some point in the near future?
Secondly, I am attempting to use the KendoUI Web datepicker as an alternative inside a mobile application. However when I include both the kendoUI style sheet and the mobile one they massively conflict, causing the datepicker to be un-useable.
Can someone advise how I can use the datepicker inside a webapp for KendoMobile? I have also tried just the standard Jquery datepicker but the same happens, the kendoUI Mobile style sheet causes it to look really bad.
I have attached a screen shot to show what I mean.
Here is some sample code:
7 Answers, 1 is accepted
On andriod I'm using the MobiScroll datepicker found here: https://code.google.com/p/mobiscroll/
I am afraid that providing a date/datetime mobile picker widgets is not in our immediate plans.
Generally speaking you should be able to use the web DatePicker in a mobile application. I tried to reproduce the behaviour that you encountered in a sample page but to no avail. Could you please check my sample and let me know what I am missing?
Thanks for the reply.
From further investigation the kendoUI datepicker for mobile DOES work as a native widget (pops up a date picker) in most newer devices.
The device I was testing on was using a very old version of the native android browser. However on all our newer devices it seems to work fine.
Thanks, I have marked this thread as answered!
The problem I have with the Kendo DatePicker on mobile, is:
- Keyboard - it opens a keyboard, when I feel it shouldn't, and it opens the wrong keyboard. It probably should be a numeric keyboard if anything.
- Bad UX - when the keyboard opens, it sits on top of the calendar and you can't move the calendar to a date later in the month without it closing on you
It would be much better if the keyboard didn't open on mobile.
Do you have any suggestions for this?
The behaviour that you expect may be achieved if you use a standard `<input type="date" />`
We did our best to adapt the DatePicker for mobile but we cannot resolve the issues that you listed because the widget is not designed with a special mobile mode. The keyboard pops up because widget's input is focused. This behaviour makes sense in desktop applications. The wrong keyboard pops up because the DatePicker input is of "text" type. This is required in order to support localization and custom formats.
Unfortunately, the '<input type="date" />' doesn't work on all browsers.
But I did find a little work around that allows me to use the Kendo DatePicker on mobile and NOT open the keyboard. By detecting for mobile, and then setting the datepicker HTML input to "readonly", it will not open the mobile keyboard and the calendar is in full view. While for desktop browsers, it will work as normally expected.