New to Kendo UI for jQuery? Download free 30-day trial

Validation

The TimePicker is designed to keep its input value unchanged even when the typed time is invalid.

This behavior is set because of the following reasons:

  • The TimePicker allows you to use different formats for time parsing. For more information, refer to the parseFormats option.
  • The TimePicker does not automatically update the typed text when the typed text is invalid. Such changes in the input value may lead to unexpected behavior.

To validate the input value of the TimePicker 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