blazor-devexpress-dot-blazor-dot-treelistcustomsummaryeventargs-c7d5dcd7.md
Specifies a calculation stage.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public TreeListCustomSummaryStage SummaryStage { get; }
| Type | Description |
|---|---|
| TreeListCustomSummaryStage |
An enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Start |
The CustomSummary event fires once at this stage before TreeList rows are processed. This allows you to initialize a summary value.
| | Calculate |
The CustomSummary event fires for each data row in a TreeList. You can calculate a summary value at this stage.
| | Finalize |
The CustomSummary event fires once at this stage after TreeList rows are processed. At this stage, you can finalize the summary calculation.
|
The summary calculation consists of three stages:
InitializationThe CustomSummary event fires once at this stage. The event’s SummaryStage property value is Start. Use this stage to initialize a summary value (for example, reset internal counters).CalculationThe CustomSummary event fires for each data row in a TreeList. The event’s SummaryStage property value is Calculate. Use this stage to calculate a summary value.FinalizationThe CustomSummary event fires once at this stage. The event’s SummaryStage property value is Finalize. Use this stage to assign the calculated summary value to the TotalValue property.
You can interrupt summary calculations at any time. To do so, set the TotalValueReady event argument to true.
Refer to the DxTreeListSummaryItem and TreeListCustomSummaryEventArgs class descriptions for additional information and examples.
See Also
TreeListCustomSummaryEventArgs Class