Server Side Pagination and Sorting Not Updating

UI Components for Vue
Post Reply
chuckbeats
Posts: 5
Joined: 03 Apr 2020, 07:03

23 Dec 2021, 09:26

We've been working on a new project using Primevue 3 and have been very impressed so far. However, we have one issue that we can't seem to resolve with the data tables, pagination and sorting. The issue also exists on the online demo/example: https://primefaces.org/primevue/showcas ... table/lazy

When we sort, we need to reset the page. It get's reset in our API calls, etc, but the paginator is not updated to reflect the new page. Is it possible to sync the paginator with the page number/id.

On the example page, if you jump to page 4, then sort by country, you'll see that you get the correct results starting with Algeria, but the paginator is still on page 4. If you click next, you'll jump all the way to page 5 staring with Croatia as opposed to going to page 2. Is it possible to update the paginator current page when firing our custom onSort() event?

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

24 Dec 2021, 08:24

It's a regression and fixed with https://github.com/primefaces/primevue/issues/1905.

Thanks for your understanding.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests