Skip to main content

DxRadioGroup<TData, TValue>.Value Property

Specifies the value of the selected item.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public TValue Value { get; set; }

Property Value

Type Description
TValue

The value type.

Remarks

You can use the @bind attribute to bind the Value property to a data field. Refer to Two-Way Data Binding.

<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" };
}

RadioGroup - Overview

See Also