Version

Configuring Summaries (xamTreeGrid)

Topic Overview

Purpose

This topic explains the specifics of the summaries support of the control.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic explains the features supported by the control from developer perspective.

This topic provides an overview of the visual elements of the control.

This topic explains how to enable summaries in a control from the Data Presenter family.

Summaries Summary

Summary

The xamTreeGrid control allows you to display summaries under each group of nested records.

The following screenshot shows summaries displayed by the control on three different nested record levels:

xamTreeGrid 08.png

Code example

Following is the code that implements this example.

In XAML:

<igDP:XamTreeGrid x:Name="xtg" DataSource="{Binding Path=Accounts}">
  <igDP:XamTreeGrid.FieldLayoutSettings>
    <igDP:FieldLayoutSettings AutoGenerateFields=" />
  </igDP:XamTreeGrid.FieldLayoutSettings>
  <igDP:XamTreeGrid.FieldSettings>
    <igDP:FieldSettings
      AllowSummaries="True"
      SummaryUIType="MultiSelect"
      SummaryDisplayArea="Bottom" />
  </igDP:XamTreeGrid.FieldSettings>
  <igDP:XamTreeGrid.FieldLayouts>
    <igDP:FieldLayout>
      <igDP:Field Name="Name" Label="Account Name" Width="250" />
      <igDP:Field Name="Number" Label="Account number" />
      <igDP:Field Name="Balance" Label="Account Balance" />
      <igDP:Field Name="Accounts" />
      <igDP:FieldLayout.SummaryDefinitions>
        <igDP:SummaryDefinition SourceFieldName="Number" Calculator="Count" />
        <igDP:SummaryDefinition SourceFieldName="Balance" Calculator="Count" />
        <igDP:SummaryDefinition SourceFieldName="Balance" Calculator="Sum" />
      </igDP:FieldLayout.SummaryDefinitions>
    </igDP:FieldLayout>
  </igDP:XamTreeGrid.FieldLayouts>
</igDP:XamTreeGrid>

The following topics provide additional information related to this topic.

Topic Purpose

This topic explains how to configure the control’s tree field.

This topic explains how to configure the expansion indicators' behavior.

This topic explains how to set the indentation used to render the child records.

This topic explains how to configure the selection behavior for child level records.

This topic explains how to configure the filtering feature of the control.

This is a group of topics explaining how to set and customize summary fields for aggregating results based on fields’ values.