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

Kendo Validator: Disable OnBlur for single custom rule

1 Answer 317 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 30 Jul 2014, 09:36 PM
Hi eveyone,

I have a custom rule (Rule A) on a Kendo Validator that I would like to only fire when I call validator.Validate() and NOT OnBlur. The validating this rule OnBlur causes a lot of problems.

The Kendo Validator also has another custom rule (Rule B)  that fires on the OnBlur as well as the Validate().

How can I stop the OnBlur from happening on Rule A, but keep it active for Rule B?

Thanks

Dave

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 01 Aug 2014, 11:15 AM
Hello Dave,

The validateOnBlur configuration option is valid for the whole Kendo UI Validator and specific rules cannot be excluded on demand. You can have separate validators on the same page - of course if the project and your current implementation allows it.

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
Dave
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or