From dab925cc32cbc61e98b17040348169b01f35edf5 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Thu, 25 Jun 2026 10:12:33 +0300 Subject: [PATCH] Fix filter popups: close other DataGrid column popups in Initial mode; stop PivotDataGrid filter popup double-toggle --- Radzen.Blazor/RadzenDataGridHeaderCell.razor | 14 +++++++------- Radzen.Blazor/RadzenPivotDataGrid.razor | 3 --- 2 files changed, 7 insertions(+), 10 deletions(-) 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 @@ {