Hello
I'm using the autocomplete component in a .net core razor page.
<ejs-autocomplete id="txbAuto" floatLabelType="Never" showClearButton="false" actionBegin="onAutoCompleteLoad"
placeholder=" Search by First, or Last Name"
filterType="Contains" minLength="3" suggestionCount="10" >
<e-data-manager url="Details?handler=Search" adaptor="UrlAdaptor">e-data-manager>
<e-autocomplete-fields text="FirstName" value="UserId">e-autocomplete-fields>
ejs-autocomplete>
The handler is working fine, and is set up as follow:
IEnumerable<ResultEntity> data = repo.GetResults(searchCriteria);
return new JsonResult(new { result = data, count = 10 });
I'm getting the following error in my browser's console:
s.filter is not a function
any idea on the source of the error ?
Is the autocomplete component expecting a specific dto as result from the data source (url adaptor in this case) ?
Thanks, M