I would like to disable partly multiselect dropdown li elements on basis of specific condition. To achieve this I tried to set data attributes on li elements and check that data while rendering these li elements and apply CSS to disable it. But neither I find any related data in data object returned by KendoMultiselect nor in documentation.
$(itemIdservicetypes).on('change', function (e) { // Here we can get the value of selected item var seletctedValueST = $(itemIdservicetypes).data("kendoDropDownList").text(); var data = $(itemIdSIMultiSelect).data("kendoMultiSelect"); data.ul.children().each(function () { if (seletctedValueST == $(this).data("ServiceType") { $(this).addClass("k-disabled"); } else { $(this).removeClass("k-disabled"); } }) });