Autofill supported with AutoComplete
19 Feb 20241 minute to read
The AutoComplete supports the autofill behavior with the help of autofill property. Whenever you change the input value, the AutoComplete will autocomplete your data by matching the typed character. Suppose, if no matches were found, then AutoComplete doesn’t suggest any item.
In the below sample, showcase that how to work autofill
with AutoComplete.
@using AutoCompleteCustomSample.Models;
@{
var data = new Countries().CountriesList();
}
<div class="control-wrapper">
<div id="default" style='padding-top:75px;margin:0 auto;width:250px;'>
<ejs-autocomplete id="country" datasource="@data" placeholder="e.g. India" autofill="true" popupheight="220px">
<e-autocomplete-fields value="Name"></e-autocomplete-fields>
</ejs-autocomplete>
</div>
</div>
NOTE