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

Destroy

methods

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

<div id="dialog"></div>
<script>
$("#dialog").kendoDialog({
    title: "Sample Dialog",
    content: "This dialog will be destroyed"
});

var widget = $("#dialog").data("kendoDialog");

// Later, when you need to remove the widget
widget.destroy();
$("#dialog").remove(); // Remove the DOM element
</script>
Not finding the help you need?
Contact Support