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

Destroy

methods

Prepares the widget for safe removal from DOM. Detaches all event handlers and removes data associated with the widget.

<form id="form">
    <input name="firstName" />
    <button id="smartPasteButton"></button>
</form>

<script>
var smartPasteButton = $("#smartPasteButton").kendoSmartPasteButton({
    service: {
        url: "https://api.example.com/smart-paste"
    }
}).data("kendoSmartPasteButton");

smartPasteButton.destroy();
</script>
Not finding the help you need?
Contact Support