Thursday, 20 June 2019

PrimeNG table lazy loading not working properly on setting the property first

We are using PrimeNG <p-table> component with virtualScroll = true & lazy = true. But it is not working in the following scenario.

Assume there are 100 records in total and the limit is 10. The user scrolls and sees an item at the offset 50 and he clicks the item and taken to the detail page of that item. Now when the user clicks browser back button I need to bring him back to the same page he was looking in <p-table>, to do that I am setting the property [first] = 50 and it is showing the correct page but when I scroll the event that is emitted contains offset 10 instead of 60, why is that?



from PrimeNG table lazy loading not working properly on setting the property first

No comments:

Post a Comment