New to Telerik UI for ASP.NET Core? Download free 30-day trial

Validation

The DatePicker is designed to keep its input value unchanged even when the typed date is invalid.

This behavior is set because of the following reasons:

  • The DatePicker allows you to use different formats for date parsing which require unrestricted user input. For more information, refer to the ParseFormats option.
  • The DatePicker does not automatically update the typed text when the typed text is invalid. Such a change in the input value may lead to unexpected behavior.

To validate the input value of the DatePicker on the client, use a client-validation framework such as the Kendo UI Validator for jQuery. In this way, you can provide an error message to end users which prompts them to do the right actions for them to resolve the issue. For more details, refer to the demo on custom validation.

See Also

In this article