RadzenDataGrid is not displaying children if I use await in OnLoadChildData event like this:
async void LoadChildData(DataGridLoadChildDataEventArgs<Organization> args)
{
isBusy = true;
args.Data = await Api.OrgWithCounts()
isBusy = false;
StateHasChanged();
}
It's working if I call it without await:
void LoadChildData(DataGridLoadChildDataEventArgs<Organization> args)
{
isBusy = true;
args.Data = Task.Run(() => Api.OrgWithCounts()).Result;
isBusy = false;
StateHasChanged();
}
But it should work with await too.