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

Declaration

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

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