I’ve been having some trouble when using the RadzenDropDown along with the LoadData for custom filtering. Followed the example for the dropdown with custom filtering.
<RadzenDropDown AllowClear="true"
LoadData=@OnLoadData AllowFiltering="true"
Data=@users TValue="UserVm" @bind-Value=@selectedUser Style="width: 100%; max-width: 400px;" Name="DropDownFilteringLoadData" />
@inject AzureService AzureService
@code {
UserVm selectedUser;
IEnumerable<UserVm> users;
async Task OnLoadData(LoadDataArgs args) // Load data from external source
{
if (args.Filter is null)
{
return;
}
users = await AzureService.GetAllUsersFromSearchPattern(args.Filter);
}
}
It triggers the LoadData when the page renders. But it does not trigger when searching in the DropDown not even when pressing enter.
Running Radzen 8.3.8
How do i fix it?