Tab

ASPxCardViewSettings.ShowSummaryPanel Property

Gets or sets whether the ASPxCardView’s summary panel is displayed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

[DefaultValue(false)]
public bool ShowSummaryPanel { get; set; }

Property Value

Type Default Description
Boolean

false

true, to display the ASPxCardView’s summary panel; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ShowSummaryPanel
ASP.NET Bootstrap Controls BootstrapCardView
.Settings.ShowSummaryPanel
ASP.NET MVC Extensions CardViewSettings
.Settings.ShowSummaryPanel
CardViewSettings<CardType>
.Settings.ShowSummaryPanel
MVCxCardView
.Settings.ShowSummaryPanel
ASP.NET Web Forms Controls ASPxCardView
.Settings.ShowSummaryPanel

Example

The code sample below demonstrates how to specify total summaries.

The image below shows the result.

ASPxCardView_SummaryItems

<dx:ASPxCardView ID="ASPxCardView1"  runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="ProductID">
    <Settings ShowSummaryPanel="True" />
    <Columns>
        ...
    </Columns>
    <TotalSummary>
        <dx:ASPxCardViewSummaryItem FieldName="ProductID" SummaryType="Count" DisplayFormat="Count of products = {0} " />
        <dx:ASPxCardViewSummaryItem FieldName="UnitPrice" SummaryType="Min" DisplayFormat="Minimum price = ${0} " />
        <dx:ASPxCardViewSummaryItem FieldName="UnitPrice" SummaryType="Max" DisplayFormat="Maximum price = ${0} " />
        <dx:ASPxCardViewSummaryItem FieldName="UnitsInStock" SummaryType="Sum" DisplayFormat="Units in stock = {0} " />
    </TotalSummary>
</dx:ASPxCardView>
See Also