BuilderFactoryExtensions.BootstrapCheckBoxList(BuilderFactory, String) Method
In This Article
Creates a Check Box List control with a specified name.
Namespace: DevExpress.AspNetCore
Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll
#Declaration
public static BootstrapCheckBoxListBuilder BootstrapCheckBoxList(
this BuilderFactory builderFactory,
string name
)
#Parameters
Name | Type | Description |
---|---|---|
builder |
Builder |
A Builder |
name | String | A control name. |
#Returns
Type | Description |
---|---|
Bootstrap |
A builder for a Check Box List control. |
#Remarks
IMPORTANT
Bootstrap Controls for ASP.
The code sample below demonstrates how you can use this method to create a Check Box List control.
cshtml
@(Html.DevExpress()
.BootstrapCheckBoxList("checkBoxListDefault")
.Items(items => {
items.Add()
.Text("WinForms")
.Value("WinForms");
items.Add()
.Text("ASP.NET")
.Value("ASP.NET")
.Selected(true);
items.Add()
.Text("ASP.NET MVC")
.Value("ASP.NET MVC")
.Selected(true);
items.Add()
.Text("WPF")
.Value("WPF");
}))
See Also