Posted By : Murugan Andezuthu Dharmaratnam
Posted On : 7 November 2014
Keywords : Code4Beginner,Beginner,Kendo disable multiselect with multiple selection enabled,Kendo disable multiselect, Multiple selection enabled

Kendo Disable MultiSelect When Multiple Selection Is Enabled

Problem Statement

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 selection.

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

Murugan Andezuthu Dharmaratnam

Murugan is a technology leader with 14 years of hands-on experience in full life cycle systems design, development, implementation, and management. In addition to systems design and development, his core competencies include cloud design and architecture, interactive web applications and websites development, mobile computing, and Healthcare Information Technology. His experience is very diverse with a broad range of technologies within multiple industry settings including private, public, and non-profit. Coupled with his technology expertise, Murugan is a well-organized, result-oriented, and a highly analytical leader with proven track record in developing and implementing very complex systems.