BuilderFactoryExtensions.BootstrapCheckBoxList(BuilderFactory) Method

Creates a Check Box List control.

Namespace: DevExpress.AspNetCore

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

Declaration

public static BootstrapCheckBoxListBuilder BootstrapCheckBoxList(
    this BuilderFactory builderFactory
)
<ExtensionAttribute>
Public Shared Function BootstrapCheckBoxList(
    builderFactory As BuilderFactory
) As BootstrapCheckBoxListBuilder

Parameters

Type Name Description
BuilderFactory builderFactory

A BuilderFactory object providing access to Check Box List settings.

Returns

Type Description
BootstrapCheckBoxListBuilderBootstrapCheckBoxListBuilder

A builder for a Check Box List control.

Remarks

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

@(Html.DevExpress()
    .BootstrapCheckBoxList()
    .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