The requested page is not available for the requested platform. You are viewing the content for Default platform.

BuilderFactoryExtensions.BootstrapComboBox(BuilderFactory) Method

Creates a Combo Box control.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public static BootstrapComboBoxBuilder BootstrapComboBox(
    this BuilderFactory builderFactory
)
<ExtensionAttribute>
Public Shared Function BootstrapComboBox(
    builderFactory As BuilderFactory
) As BootstrapComboBoxBuilder

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Combo Box settings.

Returns

Type Description
BootstrapComboBoxBuilder

A builder for a Combo Box control.

Remarks

Important

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The code sample below demonstrates how you can use this method to create a Combo Box control.

@(Html.DevExpress()
    .BootstrapComboBox()
    .Value("Item2")
    .Items(items => {
        items.Add()
            .Text("Item1")
            .Value("Item1");
        items.Add()
            .Text("Item2")
            .Value("Item2");
        items.Add()
            .Text("Item3")
            .Value("Item3");
        items.Add()
            .Text("Item4")
            .Value("Item4");
        items.Add()
            .Text("Item5")
            .Value("Item5");
    })
)
See Also