Problem with timepicker

3 posts, 2 answers
  1. Answer
    Michael
    Michael avatar
    5 posts
    Member since:
    Jun 2013

    Posted 18 Dec 2013 Link to this post

    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. Answer
    Michael
    Michael avatar
    5 posts
    Member since:
    Jun 2013

    Posted 19 Dec 2013 Link to this post

    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!
  3. Michael
    Michael avatar
    5 posts
    Member since:
    Jun 2013

    Posted 20 Dec 2013 Link to this post

    Thank you.
Back to Top