readonly

Changes the read-only state of the Switch.

Parameters

readonly Boolean

Defines whether the Switch will render in its read-only state.

Example

<input id="switch" />

<script>
    var switchInstance = $("#switch").kendoSwitch().data("kendoSwitch");
    switchInstance.readonly(true);
</script>
In this article