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

Kendo datepicker

1 Answer 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mihail
Top achievements
Rank 1
Mihail asked on 05 Jul 2018, 07:01 AM

Hi,

When use datepicker on mobile device browser the calendar and keyboard show on device.

I see that in jquery version we can make datepicker readonly that prevent keyboard to show on mobile, but in angular version when i set readonly attribute the compoment is readonly and calendar pick is not show too.

Is there any way to fix this?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 06 Jul 2018, 11:13 AM
Hello Mihail,

We indeed had a similar issue, but it was resolved. Can you please try installing the latest versions of our packages and check whether the problem is resolved?

The current expected behavior is as follows:

1) When the date input within the DatePicker is not focused, and the Calendar is opened, the mobile keyboard does not pop up

2) The keyboard pops up only if the focus is in the date input (as the user might want to type in the date instead of selecting it from the calendar)

If you would like to prevent the user from interacting with the input altogether and force him to use the Calendar only, you can prevent user interaction via CSS, e.g.:

https://plnkr.co/edit/OwKLLD6ns56TrsbtwwBJ?p=preview

The DatePicker component, like other input components, is designed to make whole component readonly, hence making just part of it readonly is not supported out-of-the-box.

What I can suggest is casting your vote for the required functionality in our UserVoice portal.

http://kendoui-feedback.telerik.com/forums/555517-kendo-ui-for-angular-feedback/suggestions/19197673-disable-user-input-on-datepicker
(note that the thread is for disabled input, but it will be applied to `readonly` behavior too)

If more people аре interested in this functionality, then we will schedule it for further investigation.

Regards,
Svetlin
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Mihail
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or