Skip to main content

MVCxTreeListSummaryCollection.Add(SummaryItemType, String) Method

Adds a new summary item to the end of the collection and returns the newly created object.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public TreeListSummaryItem Add(
    SummaryItemType summaryType,
    string fieldName
)

Parameters

Name Type Description
summaryType SummaryItemType

One of the SummaryItemType enumeration values specifying the aggregate function type. This value is assigned to the TreeListSummaryItem.SummaryType property.

fieldName String

A String value that specifies the name of a data field assigned to the current column. This value is assigned to the TreeListSummaryItem.FieldName property.

Returns

Type Description
TreeListSummaryItem

A TreeListSummaryItem object that is the newly created summary item.

See Also