Kendo UI Datepicker disable typing

Pejman picture Pejman · Jul 2, 2013 · Viewed 38.8k times · Source

I want users to be able to change a Kendo UI Datepicker value only through its button and selecting the date from the pop-up. How can I prevent users from typing in the Datepicker textbox? Can I disable the textbox without disabling the whole control?

Answer

Justin Russo picture Justin Russo · Sep 16, 2013

On your input element add this attribute and value...

onkeydown="return false;"

This will disable typed input and still allow using the calendar control input.