Skip to main content

BuilderFactoryExtensions.BootstrapCheckBoxList(BuilderFactory, String) Method

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
builderFactory BuilderFactory

A BuilderFactory object providing access to Check Box List settings.

name String

A control name.

Returns

Type Description
BootstrapCheckBoxListBuilder

A builder for a Check Box List 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 Check Box List control.

@(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