Calculations based on groups

When grouping data in ListGrids, is it possible to calculate values based on the groups? For example, having a ListGrid filled with payments, is it possible to group these payments by month, having the Header of eacht group like

“March [sum of spendings]”

where [sum of spendings] is calculated based on the items within the particular group? That would really help me a lot :wink:

Regards
Florian

Please star this issue. We’ll try to get this into SmartGWT soon.

Here is the SmartClient version of the sample.

Starred it

I starred the issue. Thank you for the tip.

Support for custom group titles have been added to SVN. Use

ListGridField.setGroupTitleRenderer(GroupTitleRenderer) and
ListGridField.setGroupValueFunction(GroupValueFunction) and

View the source of the Custom Grouping sample.

Sanjiv

Just what i needed

Thank you very much :slight_smile: