MVCxFormLayoutItemCollection<ModelType>.AddTabbedGroupItem(Action<MVCxTabbedFormLayoutGroup<ModelType>>) Method
In This Article
Adds a tabbed layout group with the specified settings to the MVCxFormLayoutItemCollection<ModelType> collection.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public MVCxTabbedFormLayoutGroup<ModelType> AddTabbedGroupItem(
Action<MVCxTabbedFormLayoutGroup<ModelType>> method
)
#Parameters
Name | Type | Description |
---|---|---|
method | Action<MVCx |
A delegate method that accepts MVCx |
#Returns
Type | Description |
---|---|
MVCx |
An MVCx |
#Remarks
The code sample below demonstrates how to add a customized tabbed layout group.
@Html.DevExpress().FormLayout(settings =>
{
settings.Name = "FormLayout1";
settings.ColumnCount = 2;
//Adding a layout group
settings.Items.AddTabbedGroupItem(group =>
{
//Specifying the number of columns that the layout group spans
group.ColumnSpan = 2;
//Adding layout items onto this group
group.Items.Add(i => i.LastName);
group.Items.Add(i => i.FirstName);
});
}).GetHtml()
See Also