Edit this page

Disable noDataTemplate in AutoComplete, MultiSelect, ComboBox, and DropDownList for MVC

Environment

Product AutoComplete for Progress Kendo UI

Description

The .NoDataTemplate method of the MVC wrappers for the dropdown widgets—AutoComplete, MultiSelect, ComboBox, and DropDownList—accepts only strings as parameters. As a result, the template is not displayed.

Solution

Disable noDataTemplate by setting the noDataTemplate option of the wrapped widget to false after the wrapped widget is initialized.

<script>
$(document).ready(function () {
    var autocomplete = $("#autocomplete").data("kendoAutoComplete");
    autocomplete.setOptions({ noDataTemplate: false });
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy