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

MVCxCardViewFormLayoutProperties Class

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

Namespace: DevExpress.Web.Mvc

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

Declaration

public class MVCxCardViewFormLayoutProperties :
    CardViewFormLayoutProperties
Public Class MVCxCardViewFormLayoutProperties
    Inherits CardViewFormLayoutProperties

Related API Members

The following members accept/return MVCxCardViewFormLayoutProperties objects:

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