restrict user input to min/max values doesn`t work for initial empty value

3 posts, 0 answers
  1. Oscar
    Oscar avatar
    182 posts
    Member since:
    Oct 2010

    Posted 15 Jul Link to this post

    Hi kendo team,

    I have an optional date input. When user types a date greater than maximum value, change event does not trigger.

    This is the sample you can reproduce the issue.

    Kind regards,

    Oscar.

     

  2. Oscar
    Oscar avatar
    182 posts
    Member since:
    Oct 2010

    Posted 15 Jul in reply to Oscar Link to this post

    Sorry, there is a mistake in the link.

    http://dojo.telerik.com/IGeKe

  3. Georgi
    Admin
    Georgi avatar
    161 posts

    Posted 18 Jul Link to this post

    Hi Oscar,

    The behavior you are observing is expected since the change event is not triggered if validation is not passed. As a workaround you can execute your logic when the blur event of the input is fired instead of the change event of the Kendo DatePicker.

    I modified the sample from previous message to use aforementioned approach:



    Regards,
    Georgi
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top