Skip to content

Commit

Permalink
Fixed DataGrid, advanced filter with Settings on column with a Enum type
Browse files Browse the repository at this point in the history
Fix #1816
  • Loading branch information
enchev committed Nov 29, 2024
1 parent 26db867 commit a59a02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Radzen.Blazor/RadzenDataGridHeaderCell.razor
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ else

async Task ApplyFilter()
{
if (PropertyAccess.IsNumeric(Column.FilterPropertyType))
if (PropertyAccess.IsNumeric(Column.FilterPropertyType) && !(PropertyAccess.IsEnum(Column.FilterPropertyType) || PropertyAccess.IsNullableEnum(Column.FilterPropertyType)))
{
var inputValue = await Grid.GetJSRuntime().InvokeAsync<string>("Radzen.getNumericValue", Grid.getFilterInputId(Column));
if (!object.Equals($"{Column.GetFilterValue()}", inputValue))
Expand Down

0 comments on commit a59a02a

Please sign in to comment.