I would like to disable some items in the kendo ListBox. There is a Sample in the kendo docs to disable: http://docs.telerik.com/kendo-ui/api/javascript/ui/listbox#methods-enable
But I would like disable some items in the list like:
var data = [
{ 'ProductID':'1', 'ProductName': 'Spalte 1', 'Discontinued': true, 'disabled': true },
{ 'ProductID':'2', 'ProductName': 'Spalte 2', 'Discontinued': true, 'disabled': false},
];
My full sample code: http://dojo.telerik.com/iKOmo/10
My goal is, disable items in the listBox when disabled = true is in the data object.
Thanks for some help Severin
var listBox = $("#listBox").data("kendoListBox");listBox.enable(".k-item", false);- JS5