New to Kendo UI for jQuery? Start a free 30-day trial

Destroy

methods

Prepares the Rating for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks.

The destroy method does not remove the Rating elements from DOM.

<input id="rating" />

<script>
    var ratingInstance = $("#rating").kendoRating().data("kendoRating");
    ratingInstance.destroy();
</script>
Not finding the help you need?
Contact Support