destroy

Prepares the RadioButton 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 RadioButton element from DOM.

Example

<input id="radio" />

<script>
    var radioInstance = $("#radio").kendoRadioButton().data("kendoRadioButton");
    radioInstance.destroy();
</script>
In this article