destroy

Removes the View element from the DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.

Example

<div id="app"></div>

<script>
var view = new kendo.View("Hi!", { tagName: "span" });
view.render($("#app"));
view.destroy();
</script>
In this article