Back to Devexpress

MVCxFormLayoutItem.NestedExtensionSettings Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxformlayoutitem.md

latest2.1 KB
Original Source

MVCxFormLayoutItem.NestedExtensionSettings Property

Gets the nested extension settings.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public SettingsBase NestedExtensionSettings { get; }
vb
Public ReadOnly Property NestedExtensionSettings As SettingsBase

Property Value

TypeDescription
SettingsBase

A SettingsBase object that is the nested extension settings.

|

Remarks

The NestedExtensionSettings property provides access to the settings of the nested extension.

The code sample below demonstrates how to use the NestedExtensionSettings property for changing the nested extension settings.

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

    settings.Items.Add(itemSettings => 
    {
        itemSettigns.Caption = "";

        // Nesting a Button
        itemSettigns.NestedExtensionType = FormLayoutNestedExtensionItemType.Button;
        // Changing the Button settings
        var btnSettigns = (ButtonSettings)itemSettigns.NestedExtensionSettings;
        btnSettigns.Name = "apply";
        btnSettigns.Text = "Apply";
        btnSettigns.UseSubmitBehavior = true;
    });
    ...
}).GetHtml()

See Also

Item Manipulation

MVCxFormLayoutItem Class

MVCxFormLayoutItem Members

DevExpress.Web.Mvc Namespace