primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-table does not reset paging component

Open falexandre opened this issue 8 years ago • 2 comments

I'm submitting a ... (check one with "x")

[X] bug repor
[ ] feature request
[ ] support request

Plunkr Case (Bug Reports) Note: Component p-table it's not working on Plunkr https://stackblitz.com/edit/angular-tstheq

Current behavior p-table component in onLazyLoad mode is not resetting pagination after refreshing information

Expected behavior After removing the object from the arraylist the page component should go to the first page Note: Only using with the lazyLoadGrid event happens the same

Minimal reproduction of the problem with instructions

  1. Click on page five
  2. Click the delete button Note that the pager did not reset

What is the motivation / use case for changing the behavior? Usability

Please tell us about your environment: Visual Studio Code on Windows 10

  • Angular version: 5.0.X

  • PrimeNG version: 2.0.X

  • Browser: [all]

  • Language: [TypeScript 2.6.X ]

falexandre avatar Mar 15 '18 17:03 falexandre

Since it is a lazy table, you need to update totalRecords as well so that paginator can adjust.

cagataycivici avatar Jun 08 '18 07:06 cagataycivici

The issue is there even with v9, what could be the workaround ?

kk1687 avatar Mar 12 '20 10:03 kk1687