MVCxCardViewFormLayoutProperties Class
Contains settings that relate to the FormLayout used in the CardView’s edit form.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Related API Members
The following members 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");
...
});
Implements
DevExpress.Web.Internal.IPropertiesDirtyTracker
DevExpress.Web.Internal.ISkinOwner
DevExpress.Web.Design.IDesignTimePropertiesOwner
DevExpress.Web.IFormLayoutOwner
Inheritance
Object
StateManager
PropertiesBase
FormLayoutProperties
GridFormLayoutProperties
CardViewFormLayoutProperties
MVCxCardViewFormLayoutProperties
See Also