Skip to content

Commit 21c51e8

Browse files
committed
PagedDataBoundComponent current page not synced for top and bottom pagers
Fix #2357
1 parent e6538c9 commit 21c51e8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Radzen.Blazor/PagedDataBoundComponent.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,14 @@ protected void CalculatePager()
475475
{
476476
topPager.SetCount(Count);
477477
topPager.SetCurrentPage(CurrentPage);
478+
topPager.ChangeState();
478479
}
479480

480481
if (bottomPager != null)
481482
{
482483
bottomPager.SetCount(Count);
483484
bottomPager.SetCurrentPage(CurrentPage);
485+
bottomPager.ChangeState();
484486
}
485487
}
486488

Radzen.Blazor/RadzenPager.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,11 @@ async Task OnLastPageClick(int endPage)
406406
}
407407
}
408408

409+
internal void ChangeState()
410+
{
411+
StateHasChanged();
412+
}
413+
409414
internal void SetCurrentPage(int page)
410415
{
411416
if (CurrentPage != page)

0 commit comments

Comments
 (0)