I am using the DataGrid in a highly dynamic application which relies on some JS interop calling InvokeAsync(StateHasChanged)
a lot. I witnessed that in that case, the filter settings for the DataGrid get lost, i.e., when the grid is updating the next time, nothing is filtered.
I am currently setting this up like so:
...
FilterPopupRenderMode="PopupRenderMode.OnDemand"
LogicalFilterOperator="LogicalFilterOperator.And"
Value="_selected"
ValueChanged="OnSelectionChangedAsync"
LoadData="LoadDataAsync"
FilterMode="FilterMode.SimpleWithMenu"
SelectionMode="DataGridSelectionMode.Multiple"
...
<RadzenDataGridColumn TItem="TestListEntry"
Property="TestId"
Title="Test ID"
FilterOperator="_idFO"
FilterValue="_idFV" />
In my code part I have:
private FilterOperator _idFO;
private object? _idFV;
However, when setting the filter, _idFV
and _idFO
are never set. What am I missing? Or do I have to implement my own Filter UI?