Skip to main content

BuilderFactoryExtensions.BootstrapRadioButtonList(BuilderFactory) Method

Creates a Radio Button List control.

Namespace: DevExpress.AspNetCore

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

Declaration

public static BootstrapRadioButtonListBuilder BootstrapRadioButtonList(
    this BuilderFactory builderFactory
)

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Radio Button List settings.

Returns

Type Description
BootstrapRadioButtonListBuilder

A builder for a Radio Button 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 Radio Button List control.

@(Html.DevExpress()
    .BootstrapRadioButtonList()
    .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");
        items.Add()
            .Text("WPF")
            .Value("WPF");
   }))
See Also