Generate a table with a remote data loading option
Open the table and change the page size
What: Actual result vs expected result
Expected result - page size is changed, whereas total number of items stays with no changes
Actual result - page size is changed, and the total number of pages is equal to the page size
Where: (e.g. component, version, url, your system info)
The issue's root cause is in table.componentrequestData method. The following line this.paginator.length = dataToShow.length in incorrect because dataToShow.length - is the total rows at the loaded page, whereas this.paginator.length is the total items available to load.
I suggest removing the line to fix the issue. The total number of available rows is set correctly at the table component template [length]="totalItems"
How: List of performed steps
What: Actual result vs expected result Expected result - page size is changed, whereas total number of items stays with no changes Actual result - page size is changed, and the total number of pages is equal to the page size
Where: (e.g. component, version, url, your system info) The issue's root cause is in
table.component
requestData
method. The following linethis.paginator.length = dataToShow.length
in incorrect becausedataToShow.length
- is the total rows at the loaded page, whereasthis.paginator.length
is the total items available to load. I suggest removing the line to fix the issue. The total number of available rows is set correctly at the table component template[length]="totalItems"
Input (files/screenshots)