-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Templates and pagination don't work together. #1679
Comments
I can confirm this behaviour. |
Confirm. It's not working in v1.1.2. Critical issue. |
Good to know. I will revert to 1.0.1. Hopefully this is resolved soon. |
I have the same issue. Possibly fix for |
I've fixed it in my project with custom rowTrackBy |
@NikitaForm Instead of If this didn't work I'd use this one: How to programmaticaly trigger refresh primeNG datatable when a button is clicked |
Hm, It took me half a day before I realized that this error causing, that not refreshing the table :) |
Angular 2.4.1 and PrimeNG 1.1.2 Templated columns do not refresh contents when paging or sorting, as mentioned by the original issue creator. Is there an ETA for this to get resolved? Thank you. |
my workaround is using rowIndex and access the correct object via your data array, however, this has another issue... when go to the last page (usually not a full page), then come back to previous page, the rowIndex becomes a very large number... I found that by using rowIndex = rowIndex % pagesize, I can get the correct rowIndex. This is just an ugly workaround, hope the issue can be fixed soon. |
I can replicate the issue with PrimeNG 1.1.2 release as well.There is no issue with 1.1.1.Anybody can confirm on this. |
I have replicated the issue in ^1.1.2. Any templated column does not refresh when sorting. |
Fixed via #1711, by the way PrimeNG 1.1.3 is released having the fix. |
Latest version of Angular 2 and PrimeNG.
If I add a template to and have the pagination logic running, the column containing the template is not is not refreshed, it remains always showing the data for the first page. Columns without templates are rendered correctly. The way to insert the template was copied from your site.
The text was updated successfully, but these errors were encountered: