I have a autocomplete kendo control which I use with Angular, its working as expected but I don't want to show the "NO DATA FOUND" list when there are no records match the text that the user enter.
I find the option k-no-data-template but this set the template in case no data was found.
Basically I want to show the list only if there are match results.
You can just use var value = $("#Ac_Transporteur"). val(); to get the entered value in the Autocomplete field.
The Kendo UI for Angular AutoComplete is a form component that provides suggestions depending on the typed text. It is a richer version of the <input> element and supports data binding, filtering, and templates.
You can try this:
noDataTemplate: ''
for example
$("#autocomplete").kendoAutoComplete({
dataSource: [
{ id: 1, city: "Bangalore" },
{ id: 2, city: "Pune" }
],
dataTextField: "city",
noDataTemplate: ''
});
So here, No Data found message won't come and even if you want to customize it put then:
noDataTemplate: 'customized message' // if you want to show your custom message to user
Hope it work for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With