diff --git a/Radzen.Blazor/RadzenDataGridHeaderCell.razor b/Radzen.Blazor/RadzenDataGridHeaderCell.razor index cdd7ae063..7001d935b 100644 --- a/Radzen.Blazor/RadzenDataGridHeaderCell.razor +++ b/Radzen.Blazor/RadzenDataGridHeaderCell.razor @@ -426,13 +426,6 @@ else if (Grid.FilterPopupRenderMode == PopupRenderMode.OnDemand && popup != null) { await popup.ToggleAsync(filterButton); - - Grid.allColumns - .Where(c => c.GetVisible() && c.UniqueID != Column.UniqueID) - .Select(c => c.headerCell) - .Where(cell => cell != null) - .ToList() - .ForEach(cell => InvokeAsync(cell!.CloseFilter)); } else if (Grid.FilterPopupRenderMode == PopupRenderMode.Initial) { @@ -442,6 +435,13 @@ else await jsRuntime.InvokeVoidAsync("Radzen.togglePopup", filterButton, Column.GetColumnPopupID(), false, null, null, true, true); } } + + Grid.allColumns + .Where(c => c.GetVisible() && c.UniqueID != Column.UniqueID) + .Select(c => c.headerCell) + .Where(cell => cell != null) + .ToList() + .ForEach(cell => InvokeAsync(cell!.CloseFilter)); } async Task ClearFilter() diff --git a/Radzen.Blazor/RadzenPivotDataGrid.razor b/Radzen.Blazor/RadzenPivotDataGrid.razor index 51424797c..97003e233 100644 --- a/Radzen.Blazor/RadzenPivotDataGrid.razor +++ b/Radzen.Blazor/RadzenPivotDataGrid.razor @@ -120,7 +120,6 @@ {