# RadzenRadioButtonList<TValue> Class

A radio button group component that allows users to select a single option from a list of choices. RadzenRadioButtonList displays multiple radio buttons with configurable layout, orientation, and data binding. Presents mutually exclusive options where only one can be selected at a time. Supports data binding via Data property or static item declaration, configurable layout including orientation (Horizontal/Vertical), gap spacing, wrapping, alignment, and justification, custom item templates for complex radio button content, disabled items individually or for the entire list, and keyboard navigation (Arrow keys, Space, Enter) for accessibility. Use for forms where users must choose one option from several, like payment methods, shipping options, or preference settings.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- [FormComponent<TValue>](https://blazor.radzen.com/docs/api/Radzen.FormComponent-1.md)
- RadzenRadioButtonList<TValue>

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender
- [IRadzenFormComponent](https://blazor.radzen.com/docs/api/Radzen.IRadzenFormComponent.md)
- [IRadzenRadioButtonList](https://blazor.radzen.com/docs/api/Radzen.IRadzenRadioButtonList.md)

## Syntax

```csharp
public class RadzenRadioButtonList<TValue> : FormComponent<TValue>, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponent, IRadzenRadioButtonList
```

## Type Parameters

| Name | Description |
|------|-------------|
| TValue | The type of the selected value. Each radio button option has a value of this type. |

## Examples

Static radio button list:

```razor
<RadzenRadioButtonList @bind-Value=@selectedOption TValue="string" Orientation="Orientation.Vertical">
    <Items>
        <RadzenRadioButtonListItem Text="Option 1" Value="option1" />
        <RadzenRadioButtonListItem Text="Option 2" Value="option2" />
        <RadzenRadioButtonListItem Text="Option 3" Value="option3" />
    </Items>
</RadzenRadioButtonList>
```

Data-bound radio list with disabled item:

```razor
<RadzenRadioButtonList @bind-Value=@paymentMethod TValue="int" Data=@paymentMethods 
                        TextProperty="Name" ValueProperty="Id" DisabledProperty="IsDisabled" />
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenRadioButtonList<TValue>()` | A radio button group component that allows users to select a single option from a list of choices. RadzenRadioButtonList displays multiple radio buttons with configurable layout, orientation, and data binding. Presents mutually exclusive options where only one can be selected at a time. Supports data binding via Data property or static item declaration, configurable layout including orientation (Horizontal/Vertical), gap spacing, wrapping, alignment, and justification, custom item templates for complex radio button content, disabled items individually or for the entire list, and keyboard navigation (Arrow keys, Space, Enter) for accessibility. Use for forms where users must choose one option from several, like payment methods, shipping options, or preference settings. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| AlignItems | [`AlignItems`](https://blazor.radzen.com/docs/api/Radzen.AlignItems.md) | Gets or sets the items alignment. |
| AriaLabelledBy | `string` | Gets or sets the id of an external element that labels the radio group. Sets the aria-labelledby attribute. |
| Data | `Collections.IEnumerable` | Gets or sets the data. |
| DisabledProperty | `string` | Gets or sets the disabled property. |
| Gap | `string` | Gets or sets the spacing between items |
| Items | `RenderFragment` | Gets or sets the items. |
| JustifyContent | [`JustifyContent`](https://blazor.radzen.com/docs/api/Radzen.JustifyContent.md) | Gets or sets the content justify. |
| Orientation | [`Orientation`](https://blazor.radzen.com/docs/api/Radzen.Orientation.md) | Gets or sets the orientation. |
| TextProperty | `string` | Gets or sets the text property. |
| ValueProperty | `string` | Gets or sets the value property. |
| VisibleProperty | `string` | Gets or sets the visible property. |
| Wrap | [`FlexWrap`](https://blazor.radzen.com/docs/api/Radzen.FlexWrap.md) | Gets or sets the wrap. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `AddItem(RadzenRadioButtonListItem<TValue> item)` | `void` | Adds the item. Parameters: `item`: The item. |
| `AddItem(IRadzenRadioButtonListItem item)` | `void` | Adds the item. Parameters: `item`: The item. |
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `GetComponentCssClass()` | `string` |  |
| `IsSelected(IRadzenRadioButtonListItem item)` | `bool` | Determines whether the specified item is selected. Parameters: `item`: The item. Returns: true if the specified item is selected; otherwise, false. |
| `OnParametersSet()` | `void` |  |
| `Refresh()` | `void` | Refreshes this instance. |
| `RemoveItem(RadzenRadioButtonListItem<TValue> item)` | `void` | Removes the item. Parameters: `item`: The item. |
| `RemoveItem(IRadzenRadioButtonListItem item)` | `void` | Removes the item. Parameters: `item`: The item. |
| `SelectItem(IRadzenRadioButtonListItem item)` | `Task` | Selects the item. Parameters: `item`: The item. |

## Inherited Members

- From [FormComponent<TValue>](https://blazor.radzen.com/docs/api/Radzen.FormComponent-1.md): Change, CurrentPlaceholder, Disabled, Dispose, EditContext, FieldIdentifier, FocusAsync, Form, FormFieldContext, FormFieldLabelledBy, GetClassList, GetValue, HasValue, IsBound, LabelTargetId, LabelToLink, LinkLabelAsync, Name, NotifyFieldChanged, OnContextMenu, Placeholder, SetParametersAsync, ShouldLinkLabel, TabIndex, Value, ValueChanged, ValueExpression, _value
- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Element, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnAfterRenderAsync, OnBecameInvisible, OnInitialized, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnInitializedAsync, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

