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

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.v18.2.dll


public TreeListSummaryItem Add(
    SummaryItemType summaryType,
    string fieldName
Public Function Add(
    summaryType As SummaryItemType,
    fieldName As String
) As TreeListSummaryItem


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.


Type Description

A TreeListSummaryItem object that is the newly created summary item.

See Also