Back to Devexpress

CardViewSettings.SettingsBehavior Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-cardviewsettings-d2dbc815.md

latest1.6 KB
Original Source

CardViewSettings.SettingsBehavior Property

Provides access to the CardView’s behavior settings.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public ASPxCardViewBehaviorSettings SettingsBehavior { get; }
vb
Public ReadOnly Property SettingsBehavior As ASPxCardViewBehaviorSettings

Property Value

TypeDescription
ASPxCardViewBehaviorSettings

An ASPxCardViewBehaviorSettings object containing the CardView’s behavior settings.

|

Remarks

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

    settings.SettingsBehavior.AllowSelectByCardClick = true;
    ...
});

See Also

Card View

CardViewSettings Class

CardViewSettings Members

DevExpress.Web.Mvc Namespace