Imagine having a RadzenDataFilter where you selected a property, did not specify a value and observe filter string
<RadzenDataFilter @ref="filter" Auto="false" Style="width: 65%;" TItem="SeriesViewPresetFilter">
<Properties>
<RadzenDataFilterProperty Property="Series.Id" Title="Series Id" />
</Properties>
</RadzenDataFilter>
public string? FilterString
{
get
{
return filter.Filters.IsNullOrEmpty() ? null : filter.ToFilterString();
}
}
Result of FilterString: '(Series.Id) = '
This is obviously not a valid dynamic linq expression. Is there a way to automatically validate / exclude descriptors that produce such filter strings?
I have seen this thread: DataFilter - filter is not empty or is required? - #2 by enchev
But to wire up custom validator for each filter for each property is an insane amount of work.
Update: it looks like the issue occurs only with numbers and enums, for strings and dates RadzenDataFilter just omits such descriptors