Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

GridField: Summarize column values


Go to End


2 Posts   1000 Views

Avatar
Nobrainer Web

Community Member, 138 Posts

27 January 2015 at 2:11am

Hi devs,

Is there a way/module to have a summary of column values in a gridfield?
For example i have a column in my GridField with prices, and i would then like to add a footer row, with the total value of the shown columns above.

If there is no such module / function, how would i go about writing it?

Avatar
martimiz

Forum Moderator, 1391 Posts

27 January 2015 at 9:49am

Googled and this came up. Haven't tried it, but maybe it will work for you:

https://github.com/samthejarvis/silverstripe-gridfield-summary-row