From d2995e3b6c6adaadba24f7c973e46a45c111b0dc Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Fri, 29 Nov 2024 09:28:26 +0200 Subject: [PATCH] employeeID should be set to null on clear --- .../Pages/DataGridAdvancedFilter.razor | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/RadzenBlazorDemos/Pages/DataGridAdvancedFilter.razor b/RadzenBlazorDemos/Pages/DataGridAdvancedFilter.razor index 83cfa8902f8..ba6cba86012 100644 --- a/RadzenBlazorDemos/Pages/DataGridAdvancedFilter.razor +++ b/RadzenBlazorDemos/Pages/DataGridAdvancedFilter.razor @@ -5,9 +5,9 @@ @inherits DbContextPage +FilterMode="FilterMode.Advanced" PageSize="5" AllowPaging="true" AllowSorting="true" Data="@employees" ColumnWidth="300px" +FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" TItem="Employee" FilterCleared=@FilterCleared +LogicalFilterOperator="LogicalFilterOperator.Or" FilterPopupRenderMode="PopupRenderMode.OnDemand"> @@ -22,17 +22,17 @@ + Type="typeof(IEnumerable)" LogicalFilterOperator=LogicalFilterOperator.Or + FilterValue="@selectedTitles" FilterOperator="FilterOperator.Contains" + SecondFilterValue="@selectedSecondTitles" SecondFilterOperator="FilterOperator.Contains" + Width="200px"> + Change=@OnSelectedTitlesChange Data="@(titles)" AllowClear="true" Multiple="true" /> + Change=@OnSelectedSecondTitlesChange Data="@(titles)" AllowClear="true" Multiple="true" /> @@ -81,6 +81,7 @@ { selectedTitles = null; selectedSecondTitles = null; + employeeID = null; await grid.FirstPage(); } } \ No newline at end of file