Skip to content

Commit

Permalink
fixed InvokeAsync(Reload); not awaited in datagrid en pagedDataBoundC…
Browse files Browse the repository at this point in the history
…omponent (#1926)
  • Loading branch information
nielsNocore authored Jan 28, 2025
1 parent 7eae5d0 commit 7cfea59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Radzen.Blazor/PagedDataBoundComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,18 @@ public override async Task SetParametersAsync(ParameterView parameters)
/// Called when [parameters set asynchronous].
/// </summary>
/// <returns>Task.</returns>
protected override Task OnParametersSetAsync()
protected override async Task OnParametersSetAsync()
{
if (Visible && !LoadData.HasDelegate)
{
InvokeAsync(Reload);
await InvokeAsync(Reload);
}
else
{
CalculatePager();
}

return base.OnParametersSetAsync();
await base.OnParametersSetAsync();
}

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions Radzen.Blazor/RadzenDataGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2209,18 +2209,18 @@ internal async Task ChangeState()
/// Called when parameters set asynchronous.
/// </summary>
/// <returns>Task.</returns>
protected override Task OnParametersSetAsync()
protected override async Task OnParametersSetAsync()
{
if (Visible && !LoadData.HasDelegate && _view == null)
{
InvokeAsync(Reload);
await InvokeAsync(Reload);
}
else
{
CalculatePager();
}

return Task.CompletedTask;
await Task.CompletedTask;
}

internal Dictionary<RadzenDataGridGroupRow<TItem>, bool> collapsedGroupItems = new Dictionary<RadzenDataGridGroupRow<TItem>, bool>();
Expand Down

0 comments on commit 7cfea59

Please sign in to comment.