Skip to main content

MVCxCardViewFormLayoutProperties.Items Property

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

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

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