Skip to main content

DxRadioGroup<TData, TValue>.ValueChanged Event

Fires when the RadioGroup’s selected value changes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }

Parameters

Type Description
TValue

The value type.

Remarks

Handle the ValueChanged event to respond to the value change.

<DxRadioGroup Items="@Languages"
              Value="@PreferredLanguage" 
              ValueChanged="@((string newValue) => OnValueChanged(newValue))" />
<p>
    Preferred language:
    <strong>@PreferredLanguage</strong>
</p>

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

    void OnValueChanged(string newValue) {
        PreferredLanguage = newValue;
    }
}
See Also