Validate event doesn't trigger

8 posts, 1 answers
  1. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 13 Dec 2013 Link to this post

    Hi Kendo Team:

    Documentation says that kendo validator has a validate event that triggers when validation completes, but there's no sample in your demos.
    Could you please provide any sample showing this?
    Kind regards.
    Oscar.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 13 Dec 2013 Link to this post

    Hello Oscar,

    There is an example, showing the validate method in action as part of the documentation about the validator component on the following link:

    http://docs.kendoui.com/api/framework/validator#events-validate

    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 16 Dec 2013 Link to this post

    Hello Kiril,
    Test this http://jsbin.com/aBAVaXA/1/edit
    I can't see any message in Console. Am I doing something wrong?
  5. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 16 Dec 2013 Link to this post

    It seems that if the container is not a form, validate event doesn't trigger. Isn't it?
  6. Answer
    Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 16 Dec 2013 Link to this post

    Hello Oscar,

    The validate event is not fired, because pressing the button does not submit the form. You will need to either call the validate() method, when the button is pressed, or use a form tag as a container for your form.

    I hope this information will be helpful.

    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  7. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 16 Dec 2013 Link to this post

    Hello Kiril,
    Thank you for the information.

    This is my scenario:
    I have a kendo comboBox whose input value is required. I have a blur event on the input of my comboBox to notify the user the result of the validation, but it triggers before the kendo validator triggers its checkValidity function, so I don't know if the value of the combo has validated sucessfully or not in my blur event.
    How can I get my event blur triggers after kendo validation blur event?
    It's a pity that your sample of kendo validator doesn't contain any comboBox.

  8. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 17 Dec 2013 Link to this post

    Ups! I wrote a blur event handler before configuring kendoValidator.
    Kiril, thank you very much for your help.
    Kind regards.
    Oscar.
  9. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 17 Dec 2013 Link to this post

    Hello Oscar,

    I am glad that you found the solution for your scenario.  In case you need any further assistance, please do not hesitate to contact us.

    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready