menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeGridAggregate - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeGridAggregate

    Configures Tree Grid aggregates.

    Inheritance
    System.Object
    SfBaseComponent
    SfDataBoundComponent
    TreeGridAggregate
    Inherited Members
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    SfDataBoundComponent.DataManager
    SfDataBoundComponent.MainParent
    SfDataBoundComponent.OnAfterRenderAsync(Boolean)
    SfDataBoundComponent.SetDataManager<T>(Object)
    Namespace: Syncfusion.Blazor.TreeGrid
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TreeGridAggregate : SfDataBoundComponent

    Constructors

    TreeGridAggregate()

    Declaration
    public TreeGridAggregate()

    Properties

    Columns

    Configures the aggregate columns.

    Declaration
    public List<TreeGridAggregateColumn> Columns { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<TreeGridAggregateColumn>

    A list of TreeGridAggregateColumn that define the aggregate columns configuration.

    Remarks

    Use this property to define aggregate columns for operations such as sum, average, minimum, and maximum. You can customize each column's settings to fit your reporting needs.

    Examples
    <SfTreeGrid DataSource="@TreeGridData" IdMapping="TaskId" ParentIdMapping="ParentId">
        <TreeGridAggregates>
            <TreeGridAggregate>
                <TreeGridAggregateColumns>
                    <TreeGridAggregateColumn Field="Sales" Type="Sum" Format="C2"></TreeGridAggregateColumn>
                </TreeGridAggregateColumns>
            </TreeGridAggregate>
        </TreeGridAggregates>
    </SfTreeGrid>

    ShowChildSummary

    Display the childSummary for each parent.

    Declaration
    public bool ShowChildSummary { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if child summaries should be displayed for each parent; otherwise, false. The default value is false.

    Remarks

    This property specifies whether summaries of child records should be displayed under each parent record. Enabling this can help provide a clearer hierarchical view of your data.

    Examples
    <SfTreeGrid DataSource="@TreeGridData" IdMapping="TaskId" ParentIdMapping="ParentId">
        <TreeGridAggregates>
            <TreeGridAggregate ShowChildSummary="true">
                <TreeGridAggregateColumns>
                    <TreeGridAggregateColumn Field="Sales" Type="Sum" Format="C0"></TreeGridAggregateColumn>
                </TreeGridAggregateColumns>
            </TreeGridAggregate>
        </TreeGridAggregates>
    </SfTreeGrid>

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    OnInitializedAsync()

    Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    SfDataBoundComponent.OnInitializedAsync()

    OnParametersSetAsync()

    Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    SfDataBoundComponent.OnParametersSetAsync()
    Back to top Generated by DocFX
    OSZAR »
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved
    OSZAR »