Prepares the ListBox for a safe removal from the DOM. Detaches all event handlers and removes the attributes to avoid memory leaks. Calls the destroy method of child Kendo UI widgets.

This method does not remove the ListBox element from the DOM.


<select id="listBox"></select>
     dataSource: {
        data: [
            { name: "Jane Doe" },
            { name: "John Doe" }
    template: "<div>#:name#</div>"
// get a reference to the list view widget
var listBox = $("#listBox").data("kendoListBox");
In this article
Not finding the help you need? Improve this article