Tab
A newer version of this page is available. Switch to the current version.

ASPxCardViewSettings Class

Provides view options for ASPxCardView controls.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxCardViewSettings :
    ASPxGridSettings
Public Class ASPxCardViewSettings
    Inherits ASPxGridSettings

Related API Members

The following members accept/return ASPxCardViewSettings objects:

Remarks

The ASPxCardViewSettings class contains options that specify the visibility of various elements (column headers, footer, status bar, etc.) within the ASPxCardView. These settings can be accessed using the ASPxCardView.Settings property.

Example

WebForms:

<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;
    ...
});

Implements

See Also