Disable Kendo Autocomplete

Deadly 提交于 2019-12-06 01:23:01

If you want to completely remove it, use destroy:

$("#autocomplete").kendoAutoComplete();
var autocomplete = $("#autocomplete").data("kendoAutoComplete");
autocomplete.destroy();

For your Better Reference just have a look to :: JS Fiddle Demo

As you can see in the Demo example link above the property of suggest into autocomplete is set to on/off as::

var autocomplete = $("#autocomplete").kendoAutoComplete({
    suggest: true,
    dataSource: ["Item1", "2Item"]             
}).data("kendoAutoComplete");

And also have a look to

http://www.telerik.com/forums/turn-off-on-stop-and-start-autocomplete-and-suggest-after-init

Another point of view. We can able to do autocomplete as read only if we want to disable the editing.

var sampledd= $("#dd").data("kendoAutoComplete"); 
sampledd.readonly(false); 

Disable Suggest

sampledd.suggest(true); // this one causing issue in IE
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!