remove

Removes items from the widget.

Parameters

element jQuery|Element|String|Array

The items that are to be removed.

Example

<select id="listBox"></select>
<script>
$("#listBox").kendoListBox({
     dataSource: {
        data: [
            { name: "Jane Doe" },
            { name: "Sam Doe" }
        ]
    },
    template: "<div>#:name#</div>"
});
var listBox = $("#listBox").data("kendoListBox");
listBox.remove(listBox.items().first());
</script>
In this article
Not finding the help you need?