Kendo Disable MultiSelect When Multiple Selection Is Enabled Edit

Murugan Andezuthu Dharmaratnam | 09 November 2020 | 24

I was trying to disable multiple select kendo control. The issue was jQuery('#selector').attr("disabled", "disabled"); This works for Single selection Dropdown box. But does not work for multiple selections.

Solution

disableMultiselect($("[name='required'"));

function disableMultiselect(elements) {
   for (var i = 0; i < elements.length; i   ) {
      console.log(elements[i]);
       console.log($(elements[i]).data("kendoMultiSelect"));
       $(elements[i]).data("kendoMultiSelect").enable(false);
   }
}