Sets the options of the Validator. Use this method if you want to enable/disable a particular option dynamically.

When setOptions is called, the Validator widget will be destroyed and recreated with the new options.


options Object

The configuration options to be set.

Example - set validateOnBlur option of the Validator to true

<div id="myform">
    <input name="username" required /> <br />
    <input name="location" required /> <br />


    // attach a validator to the container and get a reference
    var validator = $("#myform").kendoValidator().data("kendoValidator");

    //update options
    validator.setOptions({ validateOnBlur: false });
In this article