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: "This is your Kendo Dialog.",
});
var dialog = $("#dialog").data("kendoDialog");
dialog.destroy();
</script>
In this article
Not finding the help you need? Improve this article