-
Notifications
You must be signed in to change notification settings - Fork 405
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
Pagination is buggy for a Grouped Table #713
Comments
I'm running into a similar problem. The pagination doesn't seem to take header rows into account. Steps to Reproduce the Problem
The problem: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
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
|
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. Even I tried to uninstalled vue-good-table from project, and clear npm cache from machine and again re-installed vue-good-table. 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. |
hi vue-good-table team, is there any update for this issue ? |
Issue Type (delete the irrelevant ones)
Specs
What version are you using? 2.19.3
VueJs 2.6.11
What browser? Firefox Developer Edition v77.0b9
Expected Behavior
Pagination to work correctly.
Actual Behavior
Steps to Reproduce the Problem
Please detail your steps here
jsfiddle
Please see sandbox below
https://codesandbox.io/s/musing-chaplygin-mo6kg?file=/src/components/HelloWorld.vue
The text was updated successfully, but these errors were encountered: