Skip to content

Commit

Permalink
DataGrid filtering sub properties should handle null values
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Nov 25, 2024
1 parent 652e08e commit 678d861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Radzen.Blazor/QueryableExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,8 @@ public static IQueryable<T> Where<T>(this IQueryable<T> source, IEnumerable<Radz
}
else
{
whereList.Add($@"(@{index}).Contains({column.GetFilterProperty()})", new object[] { column.GetFilterValue() });
var fp = column.GetFilterProperty().Contains(".") ? $"np({column.GetFilterProperty()})" : column.GetFilterProperty();
whereList.Add($@"(@{index}).Contains({fp})", new object[] { column.GetFilterValue() });
}
}
else
Expand Down

0 comments on commit 678d861

Please sign in to comment.