Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.
The users usually change the value by just writing the value, not opening the datepicker.
How can I handle it then?
0
Tsvetomir
Telerik team
answered on 08 Jan 2019, 04:59 PM
Hi Jaanus,
If you would like to have an input which restricts the user from typing in invalid data, then you can make use of the DateInput setting of the Kendo UI DatePicker.
This would show the user what is the pattern for the date and it will automatically restrict them from submitting invalid data.
It is important to point out that the change event of the DatePicker is triggered when the date from the calendar is changed, rather than on the change of the input. There is an option to attach jQuery event handlers to the Kendo UI widgets, but even on the keypress event, it would be too late to cancel the changes because the value will be already in the input.
Let me know in case additional questions arise.
Kind regards,
Tsvetomir
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.