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

MVCxFormLayoutItem.NestedExtensionType Property

Gets or sets the type of extension nested in a layout item.

Namespace: DevExpress.Web.Mvc

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

Declaration

public FormLayoutNestedExtensionItemType NestedExtensionType { get; set; }
Public Property NestedExtensionType As FormLayoutNestedExtensionItemType

Property Value

Type Description
FormLayoutNestedExtensionItemType

One of the FormLayoutNestedExtensionItemType enumeration values.

Remarks

The code sample below demonstrates how to nest a TextBox data editor into a layout item using the NestedExtensionType property.

View code (Razor):

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

    settings.Items.Add(itemSettings => 
    {
        itemSettings.FieldName = "FirstName";
        // Nesting a TextBox data editor into this layout item
        itemSettings.NestedExtensionType = FormLayoutNestedExtensionItemType.TextBox;
    });    
    ...
}).Bind(Model).GetHtml()
See Also