Summary Values

Description

Summary values display various types of information about a field as it appears throughout the entire table.

Summary values display various types of information about a field as it appears throughout the entire table. In other words these calculations summarize all values on all pages of the grid, not just values displayed on the visible page. Summary types include: Total (numeric fields only), Count (numeric fields only), Average (numeric fields only), Minimum, Maximum, Standard Deviation (numeric fields only), Variance (numeric fields only), First, and Last. You can have summaries of as many columns as you want. Summaries can appear on all pages or on the last page only.

Four Summary Values

Total 

Displays the total value of the fields in all the records of the table.

.Summary.total.has as L 
.Summary.total.displayformat as C

Count 

Displays the count of the fields in all the records of the table.

.Summary.count.has as L 
.Summary.count.displayformat as C

Average 

Displays the average value of the fields in all the records of the table.

.Summary.average.has as L 
.Summary.average.displayformat as C

Minimum 

Displays the minimum value found in the field.

.Summary.min.has as L 
.Summary.min.displayformat as C

Maximum 

Displays the maximum value found in the field.

.Summary.max.has as L 
.Summary.max.displayformat as C

Standard Deviation 

Displays the standard deviation of the fields in all the records of the table.

.Summary.stddev.has as L 
.Summary.stddev.displayformat as C

Variance 

Displays the variance of the fields in all the records of the table.

.Summary.var.has as L 
.Summary.var.displayformat as C

First 

Displays the first value found in the field.

.Summary.first.has as L 
.Summary.first.displayformat as C

Last 

Displays the last value found in the field.

.Summary.last.has as L 
.Summary.last.displayformat as C
All summary types of a grid.

Styling Summary Values 

You can define inline styles for summary values. You can also use the BeforeSummarySectionRenderevent to make the inline style conditional on the value of the summary field.

code reference:

'Average 
tmpl.summary.average.label as C tmpl.field_info[N] 
'Count
tmpl.summary.count.label as C tmpl.field_info[N]
'First
tmpl.summary.first.label as C tmpl.field_info[N]
'Last
tmpl.summary.last.label as C tmpl.field_info[N]
'Maximum
tmpl.summary.max.label as C tmpl.field_info[N]
'Minimum
tmpl.summary.min.label as C tmpl.field_info[N]
'Standard Deviation
tmpl.summary.stddev.label as C tmpl.field_info[N]
'Total
tmpl.summary.total.label as C tmpl.field_info[N]
'Variance
tmpl.summary.var.label as C tmpl.field_info[N]