Docs

Aggregation

ZingGrid has default behaviors for calculating the average, count, min, max, and sum values for a given column. These aggregation values are displayed in a single row at the base of the grid.

Average

Display the average of a column's values in the footer.

<zg-column index="exampleIndexName" foot-cell="avg"></zg-column>

Count

Display the count of a column's items (i.e., the number of rows) in the footer.

<zg-column index="exampleIndexName" foot-cell="count"></zg-column>

Min

Display the minimum value of a column in the footer.

<zg-column index="exampleIndexName" foot-cell="min"></zg-column>

Max

Display the maximum value of a column in the footer.

<zg-column index="exampleIndexName" foot-cell="max"></zg-column>

Sum

Display the sum total of a column's values in the footer.

<zg-column index="exampleIndexName" foot-cell="sum"></zg-column>
Top