Skip to content

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

@IvoVentura142

Description

@IvoVentura142

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions