-
Notifications
You must be signed in to change notification settings - Fork 459
Description
🐛 Bug Report
When I try to use Pagination with the ItemProvider then the Pagination total items is the same as the value of ItemsPerPage.
What is weird because the total count of the data contains more then that number.
Also when I debugged the code and the event TotalItemCountChanged I see that it is 2 times called with the first result with the correct total count but the second one contains the TotalItemCount that is equal to ItemsPerPage.
💻 Repro or Code Sample
Tested in the latest version of the documentation of this project with the code snippet from Remote data [https://www.fluentui-blazor.net/DataGrid#remotedata] where I added the Pagination Parameter and the FluentPaginator
<FluentDataGrid` Pagination="pagination" Loading="true" ItemsProvider="foodRecallProvider" Virtualize="true" ItemSize="46" GenerateHeader="GenerateHeaderOption.Sticky" TGridItem="FoodRecall">
<PropertyColumn Property="@(c => c!.State)" Style="color: #af5f00 ;"/>
<PropertyColumn Property="@(c => c!.City)"/>
<PropertyColumn Property="@(c => c!.Status)"/>
</FluentDataGrid>
<FluentPaginator State="pagination"></FluentPaginator>
PaginationState pagination = new PaginationState { ItemsPerPage = 10 };
🤔 Expected Behavior
That Pagination works and gives the correct total count
😯 Current Behavior
Total count is equal to the ItemsPerPage and resulting in a not working Pagination
🔦 Context
With the current implementation we can't use the grid in combination with pagination and an external data source.
🌍 Your Environment
- OS & Device: MacOs Macbook and tested is on Windows
- BrowserMicrosoft Edge
- .NET and Fluent UI Blazor library Version: 8.0.7 and 4.9.3
Also tested the following fluent-blazor versions
4.8.0, 4.9.0, 4.9.1, 4.9.2 & 4.9.3