Kendo Validator: Disable OnBlur for single custom rule

2 posts, 0 answers
  1. Dave
    Dave avatar
    14 posts
    Member since:
    Nov 2013

    Posted 30 Jul 2014 Link to this post

    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?


  2. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 01 Aug 2014 Link to this post

    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.

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top