destroy
Prepares the CheckBox 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 CheckBox element from DOM.
Example
<input id="checkbox" />
<script>
var checkboxInstance = $("#checkbox").kendoCheckBox().data("kendoCheckBox");
checkboxInstance.destroy();
</script>