Skip to content

Conversation

@danielpastoor
Copy link
Contributor

Pull Request

πŸ“– Description

Fix for not working pagination when using a ItemProvider because the total count is not correct

🎫 Issues

#2526

πŸ‘©β€πŸ’» Reviewer Notes

Reviewers should focus on the added property "TotalViewItemCount" on the internal grid context to add a difference between the total amount of items and the items in view when there is a pagination in combination with the ItemProvider.

πŸ“‘ Test Plan

Manual testing has been performed.

βœ… Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • I have validated the Unit Tests for an existing component

@danielpastoor

This comment has been minimized.

Copy link
Collaborator

@dvoituron dvoituron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR will be verified by @vnbaaij in a few days. We are in a β€œquieter” period due to the annual vacations.

@vnbaaij vnbaaij changed the title [DataGrid] Bug fix datagrid pagination with itemprovider [DataGrid] Fix pagination when using itemprovider Aug 20, 2024
@vnbaaij vnbaaij merged commit f38fa65 into microsoft:dev Aug 20, 2024
@vnbaaij vnbaaij added this to the v4.9.4 milestone Aug 22, 2024
dannyldj pushed a commit to dannyldj/fluentui-blazor that referenced this pull request Sep 26, 2024
* use "with" instead of "assert" because of an eslint issue

* Added "TotalViewItemCount" to fix pagination for the ItemsProvider where the total amount can be different from the amount that you want to show

* Fixed unit test by restoring wrong used property on aria-rowcount

---------

Co-authored-by: Vincent Baaij <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants