RadzenDataGrid / RadzenPager - CurrentPage / Skip is not recalculated after changed Data #526

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

Originally created by @MGerdel on GitHub (Aug 31, 2022).

Describe the bug
Changing the data of a RadzenDataGrid does not update all required properties of its pager (RadzenPager.skip).

To Reproduce
Consider using a RadzenDataGrid with PageSize = 5 containing a total of 11 elements.
Go to the last page and update the data with a collection containing 10 elements.
Now update the collection to contain 11 elements again.
You should now still see page 2 (or 0 based: 1) of the datagrid, without beeing able to go to the next or last page.

Expected behavior
RadzenPager.skip should be updated when Data changes, so it can not stay on a non existant page.

Screenshots
grafik

Desktop (please complete the following information):

  • OS: Win 10
  • Browser: Firefox (64 Bit)
  • Version: 104.0

Additional context
None

Originally created by @MGerdel on GitHub (Aug 31, 2022). **Describe the bug** Changing the data of a RadzenDataGrid does not update all required properties of its pager (RadzenPager.skip). **To Reproduce** Consider using a RadzenDataGrid with PageSize = 5 containing a total of 11 elements. Go to the last page and update the data with a collection containing 10 elements. Now update the collection to contain 11 elements again. You should now still see page 2 (or 0 based: 1) of the datagrid, without beeing able to go to the next or last page. **Expected behavior** RadzenPager.skip should be updated when Data changes, so it can not stay on a non existant page. **Screenshots** ![grafik](https://user-images.githubusercontent.com/102671409/187609682-2f5f2e33-eb55-473f-a875-c9bab15748be.png) **Desktop (please complete the following information):** - OS: Win 10 - Browser: Firefox (64 Bit) - Version: 104.0 **Additional context** None
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#526