or
$(document).ready(function () { var grid = $("#grid").kendoGrid({ dataSource: { dataType: 'json', transport: { read: { url: '/remoteurl', dataType: 'json', data: { resultid: 'report_myprojects' } } }, schema: { data: 'results', total: 'total', groups: 'groups', aggregates: 'aggregates' }, pageSize: 20, serverPaging: true, serverGrouping: true, serverFiltering: true, serverSorting: true }, groupable: true, sortable: true, pageable: { refresh: true, pageSizes: [10, 20, 50, 100], buttonCount: 5 }, columns: [{ field: "fld_1001", title: "Aangemaakt op", groupHeaderTemplate1: "Created: #=value# (Count: #=count#) #saveCurrentAggregate(data)#", ,groupFooterTemplate: "Total: #=getCurrentAggregate()#" }, { field: "pro1", title: "Status", groupHeaderTemplate: "Status: #=value# (Count: #=count#) #saveCurrentAggregate(data)#", }, { field: "fld_1000", title: "Created by", groupHeaderTemplate: "Created by: #=value# (Count: #=count#) #saveCurrentAggregate(data)#", }, { field: "flddef_1", title: "Project", groupHeaderTemplate: "Project: #=value# (Count: #=count#) #saveCurrentAggregate(data)#", }, { field: "flddef_2", title: "Project lead" groupHeaderTemplate: "Project lead: #=value# (Count: #=count#) #saveCurrentAggregate(data)#", }, { field: "flddef_21", title: "Start" groupHeaderTemplate: "Start: #=value# (Count: #=count#) #saveCurrentAggregate(data)#", } ] });}); var cur_aggregate; function saveCurrentAggregate(data) { cur_aggregate = data.count;} function getCurrentAggregate() { return cur_aggregate;}toolbar: [ { name: 'test', template:'<button ng-click="test()">Hi, this is the button template! {{1+3}}</button>' }]class TreeList extends kendo.ui.Widget{//...//the current method definition:addRow(): void;//I think it should be something like this:addRow(parentRow?: any): void;interface TreeListOptions.toolbar
//the current typing is the following: toolbar?: TreeListToolbarItem[];//according to the API docs, it should be something like this (this requres TypeScript 1.4 Union Types):toolbar?: string | Function | TreeListToolbarItem[];