ASPxCardViewSettings.ShowHeaderPanel Property
Gets or sets whether the ASPxCardview’s Header Panel is visible.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to ShowHeaderPanel |
---|---|---|
ASP.NET Web Forms Controls | ASPxCardView |
|
ASP.NET MVC Extensions | CardViewSettings |
|
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