2017-05-23 111 views

回答

0

自己解決。

$(".multiValue").kendoMultiSelect({ 
      dataTextField: "Text", 
      dataValueField: "Value", 
      filter: "contains", 
      suggest: true, 
      autoClose: false, 
      placeholder: "Select", 
      tagMode: "single", 
      select: function(e){ 
       var values = this.value(); 
       if(values.length > 2){ 
        this.setOptions({ 
         tagMode: "single" 
        }); 
       }else{ 
        this.setOptions({ 
         tagMode: "multiple" 
        }); 
       } 
}