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