IgniteUI / igniteui-blazor

Ignite UI for Blazor component library packs 35+ native Blazor UI Controls with 60+ high-performance Charts designed for any Blazor WASM or Server-side app scenario.
https://www.infragistics.com/products/ignite-ui-blazor
3 stars 3 forks source link

Support for two-way binding for radio group #109

Open wnvko opened 4 months ago

wnvko commented 4 months ago

Description

There is no way to use @bind in radio group and to bind it to some variable.

Steps to reproduce

I have radio group like this:

<IgbRadioGroup>
    <IgbRadio Name="radio" Value="1">First</IgbRadio>
    <IgbRadio Name="radio" Value="2">Second</IgbRadio>
    <IgbRadio Name="radio" Value="3">Third</IgbRadio>
</IgbRadioGroup>
<p>Radio value is @_radioValue</p>
...
@code {
    private string _radioValue;
}

I want to be able to two-way bound _radioValue to the group value.

Result

There is no value in the group and it does not support two-way binding.

Expected result

Radio group should support two-way binding.

mddragnev commented 2 months ago

@wnvko This is expected for Blazor because the radio group is not working like this in WC too. Here is a feature request that was logged a while ago. We cannot do anything in Blazor until that FR is done. https://github.com/IgniteUI/igniteui-webcomponents/issues/315 . Thus, closing the issue.

dkamburov commented 3 weeks ago

Needs to be verified in Blazor