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

MVCxFormLayoutItemCollection.AddTabbedGroupItem(Action<MVCxTabbedFormLayoutGroup>) Method

Adds a tabbed layout group with the specified settings to the MVCxFormLayoutItemCollection collection.

Namespace: DevExpress.Web.Mvc

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

Declaration

public MVCxTabbedFormLayoutGroup AddTabbedGroupItem(
    Action<MVCxTabbedFormLayoutGroup> method
)
Public Function AddTabbedGroupItem(
    method As Action(Of MVCxTabbedFormLayoutGroup)
) As MVCxTabbedFormLayoutGroup

Parameters

Name Type Description
method Action<MVCxTabbedFormLayoutGroup>

A delegate method that accepts MVCxTabbedFormLayoutGroup as a parameter.

Returns

Type Description
MVCxTabbedFormLayoutGroup

An MVCxTabbedFormLayoutGroup object that is the newly added tabbed layout group.

Remarks

The code sample below demonstrates how to add a customized tabbed layout group.


@Html.DevExpress().FormLayout(settings =>
{
    settings.Name = "FormLayout1";
    settings.ColCount = 2;

    //Adding a layout group.
    settings.Items.AddTabbedGroupItem(group =>
    {
        //Specifying the number of columns that the layout group spans. 
        group.ColSpan = 2;

        //Adding layout items onto this group. 
        group.Items.Add(i => i.LastName);
        group.Items.Add(i => i.FirstName);
    });
}).GetHtml()
See Also