O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Aggregating column data

Column aggregation allows us to do interesting things on the data of a grid's column, its implementation in the GXT Grid component places a section underneath the rows where the aggregates show up for each column it is configured for.

With column aggregates, we can have an Average row (placed under/after the normal rows in the grid) that shows the average for a column with numeric data. Similarly, we can have a Sum aggregate that shows the total for the data in such a column.

Aggregating column data

How to do it...

ColumnModel is where we add aggregates to a grid using the addAggregationRow() method of the ColumnModel class, which takes an AggregationRowConfig ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required