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
Count
Min
Max
Sum

Average

Display the average of a column's values in the footer.
CloseCopy Copied
<zg-column index="exampleIndexName" foot-cell="avg"></zg-column>
Edit
Download
CloseCopy Copied
CloseCopy Copied
CloseCopy Copied

Count

Display the count of a column's items (i.e., the number of rows) in the footer.
CloseCopy Copied
<zg-column index="exampleIndexName" foot-cell="count"></zg-column>
Edit
Download
CloseCopy Copied
CloseCopy Copied
CloseCopy Copied

Min

Display the minimum value of a column in the footer.
CloseCopy Copied
<zg-column index="exampleIndexName" foot-cell="min"></zg-column>
Edit
Download
CloseCopy Copied
CloseCopy Copied
CloseCopy Copied

Max

Display the maximum value of a column in the footer.
CloseCopy Copied
<zg-column index="exampleIndexName" foot-cell="max"></zg-column>
Edit
Download
CloseCopy Copied
CloseCopy Copied
CloseCopy Copied

Sum

Display the sum total of a column's values in the footer.
CloseCopy Copied
<zg-column index="exampleIndexName" foot-cell="sum"></zg-column>
Edit
Download
CloseCopy Copied
CloseCopy Copied
CloseCopy Copied

Related Resources

loadingloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloadingloading