s

Kendo Disable MultiSelect When Multiple Selection Is Enabled edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 09 November 2020 | 2225

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);
   }
}