From 313ee50bf212d11342fbfd65ac11cb0eb1d365bd Mon Sep 17 00:00:00 2001 From: mvoxland-MoorheadSchools <108884442+mvoxland-MoorheadSchools@users.noreply.github.com> Date: Mon, 28 Aug 2023 02:26:22 -0500 Subject: [PATCH] Indication for isNull/isNotNull in simple datagrid filter (#1127) Added an Indication for when a datagrid (in simple mode)'s filter operator is set to either "is null" or "is not null". Before there was no way to see that any filters were applied until the popup was opened. --- Radzen.Blazor/RadzenDataGrid.razor | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Radzen.Blazor/RadzenDataGrid.razor b/Radzen.Blazor/RadzenDataGrid.razor index 4fd58dc7564..29204c89b87 100644 --- a/Radzen.Blazor/RadzenDataGrid.razor +++ b/Radzen.Blazor/RadzenDataGrid.razor @@ -174,11 +174,17 @@ date_range var filterValue = column.GetFilterValue(); + var filterOperator = column.GetFilterOperator(); @if (filterValue != null && filters.Any(d => d.Property == column.GetFilterProperty())) { @string.Format("{0:" + getFilterDateFormat(column) + "}", filterValue) ClearFilter(column))" class="rzi rz-cell-filter-clear">close } + else if ((filterOperator == FilterOperator.IsNull || filterOperator == FilterOperator.IsNotNull) && filters.Any(d => d.Property == column.GetFilterProperty())) + { + @column.GetFilterOperatorText(filterOperator) + ClearFilter(column))" class="rzi rz-cell-filter-clear">close + }