Tab

ASPxCardViewSettings.ShowHeaderPanel Property

Gets or sets whether the ASPxCardview’s Header Panel is visible.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

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

Property Value

Type Default Description
Boolean

false

true, if the Header Panel is visible; otherwise, false.

Property Paths

You can access this nested property as listed below:

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

Remarks

Use the ShowHeaderPanel property to specify whether the ASPxCardView’s header panel is visible. To display the filter button within the current column’s header or within all columns headers, use the GridDataColumnSettings.AllowHeaderFilter or the ASPxGridSettings.ShowHeaderFilterButton properties, respectively.

Example

Web Forms:

<dx:ASPxCardView ID="CardView" runat="server" DataSourceID="CustomersDataSource" Width="100%">
    <Columns>
    ...
    </Columns>
    <Settings ShowHeaderPanel="true" ShowHeaderFilterButton="true" />
</dx:ASPxCardView>

MVC:

var cardView = Html.DevExpress().CardView(settings =>
{
    settings.Name = "CardView";
    settings.CallbackRouteValues = new { Controller = "Home", Action = "CardViewPartial" };
    settings.KeyFieldName = "ID";

    settings.Settings.ShowHeaderPanel = true;
    settings.Settings.ShowHeaderFilterButton = true;
    ...
});
See Also