Radzen Grid problem with filtering

Hello!

I am facing a problem in Grid.
I display data in RadzenGrid.
By defult Grid displays only active users:

image

By clicking a checkbox I can filter data and display all users (active and inactive).

image

After I click on InActive user the Grid Reloads and I am not able to display data correctly.

My code in razor.cs:

And property:
public bool? IsActiveFilterValue { get; set; } = true;

Could you clarify what this means?

Also your code does not check if firstRender is true and will likely lead to infinite rendering as Grid.Reload() will trigger another render.

Hi!
Thanks for answer.
This is what happening:

cropVideoGIF

I added now If statement:

It's looks OK now but after first render, Grid shows me all data, not only Active

You can try setting the FilterValue declaratively:

<RadzenGridColumn FilterValue=@IsActiveFilterValue />

Probably something clears it now.