Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Collapse]Tree List
   [Expand]Product Information
   [Collapse]Feature Center
    [Expand]Data Binding
    [Expand]Nodes
    [Expand]Data Editing
    [Expand]Data Representation
    [Expand]Sorting
    [Expand]Filtering
    [Collapse]Summaries
      Summary Types
      Total Summaries
      Group Summaries
      Custom Summaries
      Formatting Summary Values
    [Expand]Appearances and Look And Feel
    [Expand]Focus, Selection and Navigation
     Formatting Cell Values
    [Expand]Miscellaneous
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End User Capabilities
   [Expand]Member Tables
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Total Summaries

Total summaries are calculated against all nodes or only root nodes. This topic describes how to implement total summaries in a Tree List control.

Expanded Online Video

Expanded Total Summaries

Basic steps of implementing a total summary are:

  1. Specify the type of total summary for a column.

    Set the TreeListColumn.SummaryFooter property to the desired type of aggregate function (a value other than SummaryItemType.None);

  2. Specify whether the total summary must be calculated only for root nodes or against all nodes.

    Use the TreeListColumn.AllNodesSummary property to enable summary calculation against all nodes. By default, it's set to false.

  3. Make the summary footer visible.

    Total summaries are displayed in the summary footer. So, enable the TreeListOptionsView.ShowSummaryFooter option to see total summary values.

In addition, you can specify the format for total summary values. To do this, use the TreeListColumn.SummaryFooterStrFormat property. See Formatting Summary Values to learn more.

Expanded Example

The following example demonstrates how to calculate the sum for the column bound to the "Size(Bytes)" field. The function type and summary value formatting are set via the TreeListColumn.SummaryFooter and TreeListColumn.SummaryFooterStrFormat properties.

The TreeListColumn.AllNodesSummary property is set to true to calculate the summary across all nodes within the control. The TreeListOptionsView.ShowSummaryFooter option is enabled to display the summary footer.

How would you rate this topic?​​​​​​​