MVCxFormLayoutItem.NestedExtensionType Property
Gets or sets the type of extension nested in a layout item.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public FormLayoutNestedExtensionItemType NestedExtensionType { get; set; }
#Property Value
Type | Description |
---|---|
Form |
One of the Form |
Available values:
Name | Description |
---|---|
Default | Identifies a layout item with the default nested extension. |
Binary |
Identifies a layout item with the nested Binary |
Button | Identifies a layout item with the nested Button extension. |
Button |
Identifies a layout item with the nested Button |
Calendar | Identifies a layout item with the nested Calendar extension. |
Captcha | Identifies a layout item with the nested Captcha extension. |
Check |
Identifies a layout item with the nested Check |
Check |
Identifies a layout item with the nested Check |
Color |
Identifies a layout item with the nested Color |
Combo |
Identifies a layout item with the nested Combo |
Date |
Identifies a layout item with the nested Date |
Drop |
Identifies a layout item with the nested Drop |
Hyper |
Identifies a layout item with the nested Hyper |
Image | Identifies a layout item with the nested Image extension. |
Label | Identifies a layout item with the nested Label extension. |
List |
Identifies a layout item with the nested List |
Memo | Identifies a layout item with the nested Memo extension. |
Progress |
Identifies a layout item with the nested Progress |
Radio |
Identifies a layout item with the nested Radio |
Radio |
Identifies a layout item with the nested Radio |
Spin |
Identifies a layout item with the nested Spin |
Text |
Identifies a layout item with the nested Text |
Time |
Identifies a layout item with the nested Time |
Token |
Identifies a layout item with the nested Token |
Track |
Identifies a layout item with the nested Track |
Upload |
Identifies a layout item with the nested Upload |
Validation |
Identifies a layout item with the nested Validation |
#Remarks
The code sample below demonstrates how to nest a TextBox data editor into a layout item using the NestedExtensionType property.
@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()