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

Validate event doesn't trigger

7 Answers 186 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 13 Dec 2013, 11:55 AM
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.

7 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 13 Dec 2013, 01:24 PM
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!
0
Oscar
Top achievements
Rank 1
answered on 16 Dec 2013, 11:46 AM
Hello Kiril,
Test this http://jsbin.com/aBAVaXA/1/edit
I can't see any message in Console. Am I doing something wrong?
0
Oscar
Top achievements
Rank 1
answered on 16 Dec 2013, 11:54 AM
It seems that if the container is not a form, validate event doesn't trigger. Isn't it?
0
Accepted
Kiril Nikolov
Telerik team
answered on 16 Dec 2013, 12:33 PM
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!
0
Oscar
Top achievements
Rank 1
answered on 16 Dec 2013, 01:34 PM
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.

0
Oscar
Top achievements
Rank 1
answered on 17 Dec 2013, 10:54 AM
Ups! I wrote a blur event handler before configuring kendoValidator.
Kiril, thank you very much for your help.
Kind regards.
Oscar.
0
Kiril Nikolov
Telerik team
answered on 17 Dec 2013, 01:26 PM
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!
Tags
Validation
Asked by
Oscar
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Oscar
Top achievements
Rank 1
Share this question
or