Skip to main content

CardViewSettings.SettingsBehavior Property

Provides access to the CardView’s behavior settings.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public ASPxCardViewBehaviorSettings SettingsBehavior { get; }

Property Value

Type Description
ASPxCardViewBehaviorSettings

An ASPxCardViewBehaviorSettings object containing the CardView’s behavior settings.

Remarks

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