TreeListCustomSummaryEventArgs.SummaryStage Property
Specifies a calculation stage.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public TreeListCustomSummaryStage SummaryStage { get; }
Property Value
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. |
Remarks
The summary calculation consists of three stages:
- Initialization
- The CustomSummary event fires once at this stage. The event’s
SummaryStage
property value isStart
. Use this stage to initialize a summary value (for example, reset internal counters). - Calculation
- The CustomSummary event fires for each data row in a TreeList. The event’s
SummaryStage
property value isCalculate
. Use this stage to calculate a summary value. - Finalization
- The CustomSummary event fires once at this stage. The event’s
SummaryStage
property value isFinalize
. 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 more information and examples.