Skip to main content

DxRadioGroup<TData, TValue>.Items Property

Specifies the component’s item collection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public IEnumerable<TData> Items { get; set; }

Property Value

Type Description
IEnumerable<TData>

A data collection.

Remarks

Use the Items property to specify a collection of items in the DxRadioGroup<TData, TValue> component.

<DxRadioGroup Items="@Languages"
              @bind-Value="@PreferredLanguage"/>
<p>Preferred language:
    <strong>@PreferredLanguage</strong>
</p>

@code {
    string PreferredLanguage { get; set; } = "English";
    IEnumerable<string> Languages = new[] { "English", "简体中文", "Español", "Français", "Deutsch" };
}

Run Demo: RadioGroup - Overview

See Also