destroy

Finds all Kendo widgets that are children of the specified element and calls their destroy method.

Example

<input id="autocomplete">
<script>
$("#autocomplete").kendoAutoComplete();
  console.log($("#autocomplete").data("kendoAutoComplete") != null); // outputs "true"
  kendo.destroy(document.body);
  console.log($("#autocomplete").data("kendoAutoComplete") != null); // outputs "false"
</script>

Parameters

element String|jQuery|Element
In this article
Not finding the help you need?