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

Enable

methods

Enables or disables the ListBox items.

Parameters:elementjQuery|Element|String

The items that are to be enabled or disabled.

<select id="listBox"></select>
<script>
$("#listBox").kendoListBox({
    disabled: true,
    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");
listBox.enable(".k-list-item:first", false);
</script>
Not finding the help you need?
Contact Support