javascripthtmlkendo-ui

Kendo UI Datepicker disable typing


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?


Solution

  • 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.