Skip to content

Commit 1ed88b2

Browse files
committed
Bug Fix, If a data set is multi page and the user is on a page other 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.
1 parent 72c5f64 commit 1ed88b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blazorbootstrap/Components/Pagination/Pagination.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private int GetPreviousPageNumber()
5353
/// <summary>
5454
/// Changes current page number and fires event.
5555
/// </summary>
56-
private async Task SetPageNumberTo(int newPageNumber)
56+
public async Task SetPageNumberTo(int newPageNumber)
5757
{
5858
if (ActivePageNumber != newPageNumber)
5959
{

0 commit comments

Comments
 (0)