Skip to content
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

Table has no indexes #637

Open
TeodorKolev opened this issue Jun 26, 2015 · 10 comments
Open

Table has no indexes #637

TeodorKolev opened this issue Jun 26, 2015 · 10 comments

Comments

@TeodorKolev
Copy link

For example if I want to add count my records when I go to second page and I have add $index it starts from 1 not continues to 11. Really a miss!

@hendricius
Copy link

Can you show a quick example? Thanks.

@TeodorKolev
Copy link
Author

http://plnkr.co/edit/W39ctqy9ibGXwFbtrODt?p=preview
first {{$index+1}} is index, so page 2 starts from 1 not from 11

@hendricius
Copy link

Thanks for the example. I just checked and there is no way yet to access the index when you paginate right now. You will have to implement this in your own business-logic in the data.

@TeodorKolev
Copy link
Author

Does that means that I must implement it on Database? Is there an option to run for cycle or something in javascript and make that proper?

@TeodorKolev
Copy link
Author

Also I want to get count in Group, and shows me again only items in page. I want to show me all items in group. Is that an option for that.

@hendricius
Copy link

Yep, I would do it in JS, not in the database. I would implement it in the getData function. There you have the info and the ordering and so on. Have to add it before you add the pagination.

Count in group - how would you like to do that? Do you have nested objects on each of the javascript objects? Or do you send data server-side grouped?

@TeodorKolev
Copy link
Author

I want to count all items in group. For example if I had 12 items first page shows 10, and 2nd pages shows 2. I want all 12 items to be in shown in header(total) row.

@TeodorKolev
Copy link
Author

Can you give me any example of for cycle adding index before pagination and counting all items in group. Thanks a lot!

@TeodorKolev
Copy link
Author

In other words counting in group counts the rows in group.

@TeodorKolev
Copy link
Author

Is there any option to display group total and pagination together?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants