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

Add a columns SUM feature #57

Open
miler87 opened this issue Aug 17, 2013 · 5 comments
Open

Add a columns SUM feature #57

miler87 opened this issue Aug 17, 2013 · 5 comments
Labels

Comments

@miler87
Copy link

miler87 commented Aug 17, 2013

It would be great to add a columns SUM feature. It can be attached to the grid in the same way as filters are.

Just the last row of the grid would contain sums of the (numerical) columns, specified by user by ->addSum()

From my point of view the funcionality should be sum of the visible rows (when paginator is enabled) or all rows without paginator.

des

@o5 o5 mentioned this issue Sep 2, 2013
15 tasks
@o5 o5 mentioned this issue Mar 6, 2014
5 tasks
@Ciki
Copy link
Contributor

Ciki commented Jun 25, 2014

@miler87 have you implemented it yet?

@Ciki
Copy link
Contributor

Ciki commented Jun 26, 2014

@o5 have you thought of that feature yet? can you point me where I could start off implementing it?

@Ciki
Copy link
Contributor

Ciki commented Jun 26, 2014

nevermind, I implemented it by extending Columns\Number & adding property $calculateSum & checking for it trueness in Grid.latte template

@tobice
Copy link

tobice commented Jun 27, 2014

@Ciki cool idea but does it work with pagination? We're facing the same problem right now but in our case we're expecting quite large datasets so we need pagination and (efficiently) calculated sums at the same time.

@Ciki
Copy link
Contributor

Ciki commented Jun 29, 2014

yes, the calculation is actually made in .latte as well if that flag is set. so whatever is rendered it calculated sum

@o5 o5 mentioned this issue Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants