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 the average aggregate (if specified).
  • count - The value of the count aggregate (if specified).
  • max - The value of the max aggregate (if specified).
  • min - The value of the min aggregate (if specified).
  • sum - The value of the sum 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>
In this article