Back to Devexpress

ASPxCardView.TotalSummary Property

aspnet-devexpress-dot-web-dot-aspxcardview-231b1fbd.md

latest2.9 KB
Original Source

ASPxCardView.TotalSummary Property

Provides access to total summary items.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(null)]
public ASPxCardViewSummaryItemCollection TotalSummary { get; }
vb
<DefaultValue(Nothing)>
Public ReadOnly Property TotalSummary As ASPxCardViewSummaryItemCollection

Property Value

TypeDefaultDescription
ASPxCardViewSummaryItemCollectionnull

An ASPxSummaryItemCollection object that is the collection of summary items.

|

Remarks

Total summaries are displayed in the summary panel, provided that the ASPxCardViewSettings.ShowSummaryPanel option is set to true. The total summary represents a value of an aggregate function calculated over all cards displayed within the ASPxCardView.

Note

In server mode, a summary cannot be calculated for unbound columns whose values are calculated by using events (see ASPxCardView.CustomUnboundColumnData). Only columns with unbound expressions (see CardViewColumn.UnboundExpression) support summary calculation.

To learn more, see Data Summaries.

Example

csharp
ASPxCardViewSummaryItem totalSummary = new ASPxCardViewSummaryItem();
totalSummary.FieldName = "Price";
totalSummary.SummaryType = SummaryItemType.Min;
totalSummary.ValueDisplayFormat = "c0"; 
ASPxCardView1.TotalSummary.Add(totalSummary);

See Also

GetTotalSummaryValue(ASPxCardViewSummaryItem)

GetTotalFooterDisplayText(GridViewColumn, Object)

Card View

ASPxCardView Class

ASPxCardView Members

DevExpress.Web Namespace