Back to Devexpress

ASPxCardViewSettings Class

aspnet-devexpress-dot-web-5190b27a.md

latest2.6 KB
Original Source

ASPxCardViewSettings Class

Provides view options for ASPxCardView controls.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ASPxCardViewSettings :
    ASPxGridSettings
vb
Public Class ASPxCardViewSettings
    Inherits ASPxGridSettings

The following members return ASPxCardViewSettings objects:

LibraryRelated API Members
ASP.NET Web Forms ControlsASPxCardView.Settings
ASP.NET MVC ExtensionsCardViewSettings.Settings

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

Web Forms:

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

MVC:

csharp
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

IStateManager

Inheritance

Object StateManager PropertiesBase ASPxGridSettingsBase ASPxGridSettings ASPxCardViewSettings BootstrapCardViewSettings

See Also

ASPxCardViewSettings Members

Card View

DevExpress.Web Namespace