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

Destroy

methods

Prepares the FloatingToolBar for safe removal from the DOM. Detaches all event handlers, destroys the internally hosted ToolBar, Popup, and Draggable (when created), and removes jQuery.data attributes to avoid memory leaks.

Important: This method does not remove the widget element from the DOM.

<div id="floatingtoolbar"></div>

<script>
    var floatingToolBar = $('#floatingtoolbar').kendoFloatingToolBar({
        items: [
            { type: 'button', text: 'Copy' }
        ]
    }).getKendoFloatingToolBar();

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