The requested page is not available for the requested platform. You are viewing the content for Default platform.

MVCxCardViewFormLayoutProperties Class

Contains settings that relate to the FormLayout used in the CardView's edit form.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class MVCxCardViewFormLayoutProperties :
    CardViewFormLayoutProperties
Public Class MVCxCardViewFormLayoutProperties
    Inherits CardViewFormLayoutProperties

Remarks

A MVCxCardViewFormLayoutProperties instance can be accessed via the CardViewSettings.EditFormLayoutProperties and the CardLayoutProperties properties.

Example

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

    settings.Columns.Add("ID");
    settings.Columns.Add("Test");

    settings.CardLayoutProperties.Items.AddCommandItem(i =>
    {
        i.ShowNewButton = true;
        i.ShowEditButton = true;
        i.ShowDeleteButton = true;
    });
    settings.CardLayoutProperties.Items.AddEditModeCommandItem();
    settings.CardLayoutProperties.Items.Add("ID");
    settings.CardLayoutProperties.Items.Add("Test");
    ...
});
See Also