validate

Fired when the validation of the form completes.

The validate event will not fire while chaning individual input values.

The event handler function context (available via the this keyword) will be set to the data source instance.

Event Data

e.sender kendo.ui.Validator

The validator instance which fired the event.

e.valid Boolean

True if validation is passed, otherwise false.

errors Array

The validation errors.

Example - subscribe to the "validate" event during initialization

  <form>
    <input name="username" required /> <br />
    <button id="save">Save</button>
  </form>

  <script>
    // attach a validator to the container
    $("form").kendoValidator({
        validate: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
            console.log("valid" + e.valid);
        }
    });
  </script>

Example - subscribe to the "validate" event after initialization

  <form>
    <input name="username" required /> <br />
    <button id="save">Save</button>
  </form>

  <script>
    // attach a validator to the container and get a reference
    var validatable = $("form").kendoValidator().data("kendoValidator");

    validatable.bind("validate", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
        console.log("valid" + e.valid);
    });
  </script>
In this article