What version are you using? 2.19.3
VueJs 2.6.11
What browser? Firefox Developer Edition v77.0b9
Pagination to work correctly.
Please detail your steps here
Please see sandbox below
https://codesandbox.io/s/musing-chaplygin-mo6kg?file=/src/components/HelloWorld.vue
I'm running into a similar problem. The pagination doesn't seem to take header rows into account.
The pagination shows 1 - 10 of 10 with the prev and next button disabled. But there are only 8 items shown. With the Headers from the two groups using up the remaining two slots.
With no other page to go to the only way a user can actually see the two missing items is by changing the Per page count to something higher or lower.
I think the issue is how the totalRowCount is calculated in Table.vue
each(this.processedRows, (headerRow) => {
total += headerRow.children ? headerRow.children.length : 0;
});
This only counts the children and not the header itself.
I'm not sure if I'm missing anything here.
Quick test changing these function to just add 1 seems to fix the issue
totalRowCount() {
let total = 0;
each(this.processedRows, (headerRow) => {
total += headerRow.children ? headerRow.children.length + 1 : 1;
});
return total;
},
totalPageRowCount() {
let total = 0;
each(this.paginated, (headerRow) => {
total += headerRow.children ? headerRow.children.length + 1 : 1;
});
return total;
},
I was having this issue where the page data and page counts were off. I went through the code line by line and realized that I had missed adding the mode="remote" prop and everything works now. So just double-check you have that prop.
I was having this issue where the page data and page counts were off. I went through the code line by line and realized that I had missed adding the mode="remote" prop and everything works now. So just double-check you have that prop.
@Sell24 I thought mode="remote" is only for when you want to use server-side pagination...
@sobiero It is, but since you did not mention where you were getting your data I thought I would mention it since the same thing was happening to me
I found the same problem. The rows per page are 10, But showing just 9 rows
Hi,
as I can see in this this repository history, this change is merged.
But can you suggest how can I fetch this change in my already install project's library.
Even I tried to uninstalled vue-good-table from project, and clear npm cache from machine and again re-installed vue-good-table.
but in src/components/Table.vue file this change did not reflected.
Can any one suggests can I fetch or re-install vue-good-table.
Hi,
as I can see in this this repository history, this change is merged.
But can you suggest how can I fetch this change in my already install project's library.Even I tried to uninstalled vue-good-table from project, and clear npm cache from machine and again re-installed vue-good-table.
but insrc/components/Table.vuefile this change did not reflected.Can any one suggests can I fetch or re-install vue-good-table.
@yashpalchhajer Did you find a solution for this? This change does not seem to have been effected in master
Hi,
as I can see in this this repository history, this change is merged.
But can you suggest how can I fetch this change in my already install project's library.
Even I tried to uninstalled vue-good-table from project, and clear npm cache from machine and again re-installed vue-good-table.
but insrc/components/Table.vuefile this change did not reflected.
Can any one suggests can I fetch or re-install vue-good-table.@yashpalchhajer Did you find a solution for this? This change does not seem to have been effected in master
no still I did not found any way to use this change in my code.
If you have reinstalled the package and it doesnt work then that means that the package with this change has not been released yet. So just merge the changes in your code yourself in your local code until the package is released or fork it and create your own version.