Skip to content

Commit

Permalink
Bug Fix, If a data set is multi page and the user is on a page other …
Browse files Browse the repository at this point in the history
…than 1. When a search filter is applied and returns less pages than the active page the data set (grid) appears blank until a user clicks on page 1. Exposing SetPageNumberTo allows me to programatically handle this.
  • Loading branch information
MarkKamberger committed Dec 3, 2024
1 parent 72c5f64 commit 1ed88b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blazorbootstrap/Components/Pagination/Pagination.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private int GetPreviousPageNumber()
/// <summary>
/// Changes current page number and fires event.
/// </summary>
private async Task SetPageNumberTo(int newPageNumber)
public async Task SetPageNumberTo(int newPageNumber)
{
if (ActivePageNumber != newPageNumber)
{
Expand Down

0 comments on commit 1ed88b2

Please sign in to comment.