From 1ed88b2e8e1f850a7ba75a5b7fdc8f33eef5a8c3 Mon Sep 17 00:00:00 2001 From: Mark Kamberger Date: Tue, 3 Dec 2024 10:26:03 -0500 Subject: [PATCH] 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. --- blazorbootstrap/Components/Pagination/Pagination.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazorbootstrap/Components/Pagination/Pagination.razor.cs b/blazorbootstrap/Components/Pagination/Pagination.razor.cs index 23a5b733c..73d6a33df 100644 --- a/blazorbootstrap/Components/Pagination/Pagination.razor.cs +++ b/blazorbootstrap/Components/Pagination/Pagination.razor.cs @@ -53,7 +53,7 @@ private int GetPreviousPageNumber() /// /// Changes current page number and fires event. /// - private async Task SetPageNumberTo(int newPageNumber) + public async Task SetPageNumberTo(int newPageNumber) { if (ActivePageNumber != newPageNumber) {