destroy

Prepares the Gauge for safe removal from the DOM.

Detaches event handlers and removes data entries in order to avoid memory leaks.

Example

<div id="gauge"></div>
<script>
    $("#gauge").kendoArcGauge({
        value: 50
    });
    setTimeout(function(){
        kendo.destroy($("#gauge"));
        $("#gauge").remove();
    },1000);
</script>
In this article
Not finding the help you need? Improve this article