enable
Enables or disables the ListBox items.
Parameters
element jQuery|Element|String
The items that are to be enabled or disabled.
enable Boolean
(optional, default: true)
Indicates whether the items should be enabled or disabled.
Example - disable the first list item
<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>