MVCxFormLayoutItem.NestedExtensionSettings Property
In This Article
Gets the nested extension settings.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public SettingsBase NestedExtensionSettings { get; }
#Property Value
Type | Description |
---|---|
Settings |
A 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.
@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