blazorbootstrap icon indicating copy to clipboard operation
blazorbootstrap copied to clipboard

How to set the Grid page number when the current page is empty

Open IvoVentura142 opened this issue 7 months ago • 0 comments

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:

  1. Go to the page with the grid
  2. Navigate to the grids last page
  3. 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: image

I remove that Item image

As you can see the page is empty.

Versions

  • BlazorBootstrap: 1.10.4
  • Blazor WebAssembly / Server: Server
  • .NET Version: .NET 7

IvoVentura142 avatar Nov 30 '23 16:11 IvoVentura142