columns.footerTemplate String|Function

The template which renders the footer table cell for the column.

The fields which can be used in the template are:

  • 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 - specify 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
Not finding the help you need?