setOptions

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

Parameters

options Object

The configuration options to be set.

Example

<form id="myForm"></form>

<script>
    $("#myForm").kendoForm({
        formData: {
            ID: 1,
            Name: "Ivan",
            Address: "Sofia"
        }
    });

    var form = $("#myForm").getKendoForm();

    form.setOptions({
        orientation: "horizontal"
    });
</script>
In this article