This is a migrated thread and some comments may be shown as answers.

Problem with timepicker

2 Answers 9 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 18 Dec 2013, 10:01 PM
Hello.

Is there any way to catch format exception from Time picker? It seems that whenever I manually enter time with wrong format into Time picker it won't fire onChange event and I can not validate proper format.

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 19 Dec 2013, 02:32 PM
Hi Michael,

Basically the change event is triggered only when the value of the widget has changed. Since the input was invalid the value remains unchanged. In the current case I would recommend you to use the KendoUI Validator and define a custom validation rule and use the validate method when leaving the input element or pressing enter. You can find a simple example of that behavior here.

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Michael
Top achievements
Rank 1
answered on 20 Dec 2013, 08:15 PM
Thank you.
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Michael
Top achievements
Rank 1
Share this question
or