BuilderFactoryExtensions.BootstrapComboBox(BuilderFactory) Method
In This Article
Creates a Combo Box control.
Namespace: DevExpress.AspNetCore
Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll
#Declaration
public static BootstrapComboBoxBuilder BootstrapComboBox(
this BuilderFactory builderFactory
)
#Parameters
Name | Type | Description |
---|---|---|
builder |
Builder |
A Builder |
#Returns
Type | Description |
---|---|
Bootstrap |
A builder for a Combo Box control. |
#Remarks
IMPORTANT
Bootstrap Controls for ASP.
The code sample below demonstrates how you can use this method to create a Combo Box control.
cshtml
@(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