2016-12-01 38 views

回答

4

你可以试试这个:

noDataTemplate: '' 

例如

$("#autocomplete").kendoAutoComplete({ 
    dataSource: [ 
    { id: 1, city: "Bangalore" }, 
    { id: 2, city: "Pune" } 
    ], 
    dataTextField: "city", 
    noDataTemplate: '' 
}); 

所以在这里,没有内容消息不会来,即使你想定制它把那么:

noDataTemplate: 'customized message' // if you want to show your custom message to user 

希望它适合你。

+0

如果你正在使用Angular,你可以选择选项k-no-data-template =“''” – mbadeveloper

+0

简单而有效的建议:)没有想到它。谢谢。 – Jack0fshad0ws

相关问题