columns.footerTemplateString|Function
The template which renders the footer table cell for the column.
The following fields can be used in the template:
average- The value of theaverageaggregate (if specified).count- The value of thecountaggregate (if specified).max- The value of themaxaggregate (if specified).min- The value of theminaggregate (if specified).sum- The value of thesumaggregate (if specified).
Example - specifyinging a column footer template
<div id="treeList"></div>
<script>
$("#treeList").kendoTreeList({
columns: [
{ field: "name" },
{ field: "age",
footerTemplate: "Min: #: min # Max: #: max #"
}
],
dataSource: {
data: [
{ id: 1, parentId: null, name: "Jane Doe", age: 30 },
{ id: 2, parentId: 1, name: "John Doe", age: 33 },
{ id: 3, parentId: 1, name: "Joseph Doe", age: 42 }
],
aggregate: [
{ field: "age", aggregate: "min" },
{ field: "age", aggregate: "max" }
]
}
});
</script>