columns.footerTemplate String|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 theaverage
aggregate (if specified). -
count
- The value of thecount
aggregate (if specified). -
max
- The value of themax
aggregate (if specified). -
min
- The value of themin
aggregate (if specified). -
sum
- The value of thesum
aggregate (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>