I have this Kendo Autocomplete code:
HTML:
<input id="faceUsers" type="text" placeholder="Search..." data-role="autocomplete" autocomplete="off" role="textbox" aria-haspopup="true" aria-disabled="false" aria-readonly="false" aria-autocomplete="list" aria-busy="false">
JS:
$("#faceUsers").kendoAutoComplete({
dataTextField: "name",
dataValueField: "name",
template: '<img src=\"${data.picture.data.url}\" class="imguser" />' +
'<h4 class="autotext">${ data.name }</h4>',
filter: "contains",
minLength: 1,
height: 370,
dataSource: faceDataSource
});
I have set properly my faceDataSource
and it works as expected.
The problem i am facing is how i can disable this autocomplete. After a particular action i want the input
element to behave as a normal input
element without autocomplete.