DataGrid changes to page 1 when its bound data changes #563

Open
opened 2026-01-29 17:39:22 +00:00 by claunia · 0 comments
Owner

Originally created by @elylv on GitHub (Oct 3, 2022).

Related: #591 #598

Reporting that the bug referenced in #591 seems to be present on v4.1.6
I have a datagrid bound to Data only (with no LoadData).
The Data I'm binding to is dynamic, in that it is a get => to another list, basically just filtering things out .Where(x => x.Active)
When I select an item on page 2 of the grid, the grid changes to page 1.
I presume that when I select an item, a StateHasChanged() is fired and the Data is recalculated, and I'm experiencing the same bug as #591. I guess the fix from #598 reintroduced this bug.

Originally created by @elylv on GitHub (Oct 3, 2022). Related: #591 #598 Reporting that the bug referenced in #591 seems to be present on v4.1.6 I have a datagrid bound to Data only (with no LoadData). The Data I'm binding to is dynamic, in that it is a get => to another list, basically just filtering things out .Where(x => x.Active) When I select an item on page 2 of the grid, the grid changes to page 1. I presume that when I select an item, a StateHasChanged() is fired and the Data is recalculated, and I'm experiencing the same bug as #591. I guess the fix from #598 reintroduced this bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#563