The requested page is not available for the requested platform. You are viewing the content for Default platform.

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
)
<ExtensionAttribute>
Public Shared Function BootstrapRadioButtonList(
    builderFactory As BuilderFactory
) As BootstrapRadioButtonListBuilder

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