You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the same error in my project. However, the last page is generally not included. Not just for large datasets.
I found a solution. In your implementation you use following code line: public getPageCount(): number { return this.getPaginator().getNumberOfPages(); }
My solution was to add " + 1" :
public getPageCount(): number { return this.getPaginator().getNumberOfPages() + 1; }
I think the problem comes with paginator.getNumberOfPages() returning "0" for one page and "1" for two pages and so on.
Since I'm not able to update my project angular version yet, a fix for the older version would be great.
The text was updated successfully, but these errors were encountered:
Hi @BoppertF , thank you for tracking this down.
This used to work, actually, maybe the indexing behavior has changed after a specific angular release.
Angular CLI: 6.2.9
Node: 14.18.1
Angular: 6.1.10
mat-table-exporter: "^1.2.5"
angular/material: "6.4.7"
Hello,
I found this issue: Last page data is missing in the export for large datasets #14
but there was no solution to it.
I got the same error in my project. However, the last page is generally not included. Not just for large datasets.
I found a solution. In your implementation you use following code line:
public getPageCount(): number { return this.getPaginator().getNumberOfPages(); }
My solution was to add " + 1" :
public getPageCount(): number { return this.getPaginator().getNumberOfPages() + 1; }
I think the problem comes with paginator.getNumberOfPages() returning "0" for one page and "1" for two pages and so on.
Since I'm not able to update my project angular version yet, a fix for the older version would be great.
The text was updated successfully, but these errors were encountered: