<div class="control-section col-lg-12">
<div id='remote-data' class="col-lg-6">
<div class='content'>
<h4>Remote Data</h4>
<EjsAutoComplete DataSource="@AutoCompleteData" placeholder="Select a name">
<AutoCompleteFieldSettings Value="FirstName"></AutoCompleteFieldSettings>
</EjsAutoComplete>
</div>
</div>
</div>
@code{
Employees[] AutoCompleteData;
protected override async Task OnInitAsync()
{
AutoCompleteData = await http.GetJsonAsync<Employees[]>("api/SampleData");
}
} |