A newer version of this page is available. Switch to the current version.

TreeListCustomSummaryEventArgs.Value Property

Gets or sets the summary value.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v18.2.dll


public object Value { get; set; }
Public Property Value As Object

Property Value

Type Description

An object that represents the summary value.


The Value property represents the summary value that accumulates the custom calculated value. Note that this property should be initialized before the summary calculation process starts. To identify the status of the custom summary calculation, use the TreeListCustomSummaryEventArgs.SummaryProcess property. When performing calculations, you need to refresh the Value property for it to be updated with the new values.


This example shows how to implement a custom summary calculation.

Create a summary item within the ASPxTreeList.Summary collection and customize its settings as shown below:


The ASPxTreeList.CustomSummaryCalculate event is handled to sum the budgets of selected departments. Finally, set the TreeListSettingsBehavior.ProcessSelectionChangedOnServer option to true.

The image below shows the result:


using DevExpress.Data;

protected void ASPxTreeList2_CustomSummaryCalculate(object sender,
TreeListCustomSummaryEventArgs e) {
    switch (e.SummaryProcess) {
        case CustomSummaryProcess.Start:
            e.Value = (int)0;
        case CustomSummaryProcess.Calculate:
            if (e.Node.Selected)
                e.Value = (int)e.Value + (int)e.Node["Budget"];
        case CustomSummaryProcess.Finalize:
See Also