New to Kendo UI for jQueryStart a free 30-day trial

Destroy

methods

Prepares the Switch for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls the destroy method of any child Kendo UI widgets.

The destroy method does not remove the Switch element from DOM.

<input id="switch" />

<script>
    var switchInstance = $("#switch").kendoSwitch().data("kendoSwitch");
    switchInstance.destroy();
</script>
Not finding the help you need?
Contact Support