destroy

Destroys the dialog and its modal overlay, if necessary. Removes the widget HTML elements from the DOM.

Example

<div id="dialog"></div>
<script>
$("#dialog").kendoDialog({
  title: "Kendo Dialog Component",
  content: "The Dialog will be destroyed in a few seconds...",
});
setTimeout(function(){
    var dialog = $("#dialog").data("kendoDialog");
    dialog.destroy();
}, 1500)
</script>
In this article