blazorbootstrap
blazorbootstrap copied to clipboard
How to set the Grid page number when the current page is empty
Describe the bug I have a grid with multiple pages of records, and when I'm on some page ex: page 12 and remove all the items from that page, the page is empty but the grid doesn't navigate to the previous page.
I'm using Server Side Filtering and paging, how can I force the grid to change to the previous page and show that page as selected on the grid pagination.
To Reproduce Steps to reproduce the behavior:
- Go to the page with the grid
- Navigate to the grids last page
- Remove all the items from that grid page
Expected behavior I expect the "active" page number to change to the previous page number (if any page remains)
Screenshots
Page 12 has 1 Item:
I remove that Item
As you can see the page is empty.
Versions
- BlazorBootstrap: 1.10.4
- Blazor WebAssembly / Server: Server
- .NET Version: .NET 7