Back to Devexpress

DropDownButtonBuilder.DropDownOptions(Action<PopupBuilder>) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-dropdownbuttonbuilder-dot-dropdownoptions-x28-system-dot-action-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-popupbuilder-x29.md

latest2.0 KB
Original Source

DropDownButtonBuilder.DropDownOptions(Action<PopupBuilder>) Method

Configures the drop-down field. Mirrors the client-side dropDownOptions object.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public DropDownButtonBuilder DropDownOptions(
    Action<PopupBuilder> configurator
)

Parameters

NameTypeDescription
configuratorAction<PopupBuilder>

A function that allows you to specify nested options.

|

Returns

TypeDescription
DropDownButtonBuilder

A reference to this instance after the method is called.

|

Remarks

This method provides access to methods that allow you to configure nested options of the client-side dropDownOptions object.

To specify nested options, use a lambda expression.

cshtml
@(Html.DevExtreme().DropDownButton()
    .DropDownOptions(options => options
        // call methods to specify nested options
    )
)

Refer to Nested Options and Collections for more information.

See Also

DropDownButtonBuilder Class

DropDownButtonBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace