Find if any filter is applied to a RadzenDataGrid

I'm trying to find a way to see if any filter is applied to a RadzenDataGrid.
I tried by checking

grid.ColumnsCollection.Any(c => c.FilterValue != null)

But this always returns false.
When I analyse the grid properties I see that FilterValue is indeed null, but the property filterValue (lowercase f) does have the current value:
But that property is unreachable.

How can I find out if any filter is applied to the grid?

Thanx in advance

You can use GetFilterValue() method instead. In Blazor public parameters will have value only if assigned outsides of the component, internally different property/field is used - that’s why the method.

1 Like


You're suggestion is working.
Thnx for the quick reply.