Class TreeGridAggregate
Configures Tree Grid aggregates.
Inherited Members
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 |
|
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
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. |