You can use treeOptions of the tree view and groupFooter of each column to display the footer of each tree row level. In the tree view below, it specifies footerLevels as "*" to display the footer of each row in all levels except Leaf.
By specifying the explicit level as an array in TreeOptions.footerLevels or specifying TreeOptions.footerDisplayCallback callback function, you can specify the row which will display Footer in more complicated logic.
Display Footer only in 1 level row.
treeMain.setTreeOptions({
/** footerDisplayCallback takes precedence. */
footerDisplayCallback: null,
footerLevels: [1]
});
Display Footer only in 1 level row.
treeMain.setTreeOptions({
footerDisplayCallback: function (row) {
return row.level() == 2;
}
});
You can specify TreeOptions.summaryScope and rowSummaryScope to specify the range of the rows contained in the calculation when calculate the sum displayed in the tree view footer or the footer cell of each tree row.