Thanks for adding the Clear menu item to the filter menu. I have a custom filter that uses the filter button. All menu items (changing the operator) fire Filter event and I can update my model to save filter state for navigating to and from the page. But Clear does not fire Filter event so I cannot take action and clear my filter.
Could you please add the logic to fire Filter on Clear (I think it makes sense, since the filter value changed?).
I also tried to integrate my filter more closely with DataGrid so that I can bind to FilterValue instead of my Model property but for now I am confused why you have FilterValue and filterValue and similarly for other filter properties. Thanks!
The reason behind this can be found in this thread:
Long story short you cannot both bind and change runtime a parameter property in Blazor. Every StateHasChanged() will reset the property to initial state.
Thanks for explaining. I made another attempt at integrating my filter with FilterValue, and basically now I call grid.OnFilter() via reflection when my filter changes. RadzenDataGrid::OnFilter is protected, do you want to make it public for custom filters?
BTW, in that logic in ToFilterString() in the IEnumerable case you check whether FilterType is IEnumerable, but if neither FilterProperty nor Type is set then you use the type of the Property. So it ends up being a check for whether the Property is IEnumerable and then you do Contains on the Property, which in this case is not a string but IEnumerable. This is some sort of a logic breakdown, whether it's a bug or a feature Thanks!