andySF
April 25, 2025, 9:44am
1
Upgrading to Radzen 6, this query to filter via old dynamic linq library does not work anymore. What should be the correct way to filter now for this case?
private string filterFinalizate = $"Status == {(int)FormSubmissionStatus.Finalizata}";
private string filterNefinalizate = $"Status != {(int)FormSubmissionStatus.Finalizata}";
enchev
April 25, 2025, 9:55am
2
Try to use directly the enum instead the int value.
andySF
April 25, 2025, 10:38am
3
I did try that and also tried to hardode my int value but with the same error: "Invalid predicate: Status != 6"
. Status
is an Enum of type FormSubmissionStatus
.
enchev
April 25, 2025, 10:39am
4
This is exactly the opposite of what I've suggested. Check also this post for details on what is changed:
Hey folks,
We just released our new major version of Radzen.Blazor 6.0.0 without reference to System.Linq.Dynamic.Core NuGet package, due to recent turmoil related to this package vulnerability issues. Although the author of the popular Dynamic LINQ library fixed the reported problems we've decided to reimplement everything related in Radzen.Blazor from scratch including:
Filtering, sorting, grouping, member access, etc. in components like DataGrid, DataFilter, DropDown, DropDownDataGrid, Lis…
For example you need to have valid lambda function with instance name when accessing a property.