SMART datagrid v.1 > Classes > ColumnHeader
The summary cell model of this column being displayed in Column Header Summary under Grid Header area.
It is almost the same except that Column Footer is displayed on the bottom and summary is displayed on the top of grid.
var columns = [{
name: "quantity",
fieldName: "quantity",
header: {
text: "Quantity",
summary: {
expression: "sum",
styles: {
numberFormat: "#,##0",
color: "#800",
fontBold: true
}
},
footer: {
expression: "sum",
}
}
}, ...
];
grid.setColumns(columns);