Find if any filter is applied to a RadzenDataGrid

Hi
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:
image
But that property is unreachable.

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

Thanx in advance
Henk

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

Hi

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