Skip to main content
A newer version of this page is available. .

MVCxCardViewFormLayoutProperties.Items Property

Provides access to the collection of items placed in the edit form layout.

Namespace: DevExpress.Web.Mvc

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

Declaration

public MVCxCardViewLayoutItemCollection Items { get; }

Property Value

Type Description
MVCxCardViewLayoutItemCollection

An MVCxCardViewLayoutItemCollection object that is a collection of layout items.

Remarks

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