Radio Button Group not single selecting

I'm sure this is something simple, but I have a simple radio button group that Mode is set to "SelectionMode.Single".  However its not single-selecting.  Here is my code.  Any suggestions are appreciated.

    <SfButtonGroup name="exportGroup" Mode="SelectionMode.Single">
        <SfRadioButton Name="cbAsset" TChecked="string" Value="asset" Label="Assets" />
        <SfRadioButton Name="cbEverything" TChecked="string" value="everything" Label="Entire Database" />
    </SfButtonGroup>

1 Reply 1 reply marked as answer

JS Janakiraman Sakthivel Syncfusion Team September 24, 2021 02:16 PM UTC

Hi Chris Reed, 
 
We have checked your reported requirements and we suspect that you need a single-selection type in Radio Button.  So, we suggest you use @bind-checked in your code, as in the below code example. 
 
Code Block: 
 
<SfRadioButton Name="cbAsset" TChecked="string" Value="asset" Label="Assets" @bind-Checked="stringChecked"/> 
<SfRadioButton Name="cbEverything" TChecked="string" Value="everything" Label="Entire Database" @bind-Checked="stringChecked"/> 
        <div>Select value: @stringChecked</div> 
@code { 
    private string stringChecked = "everything"; 
} 
 
 
For your convenience, we have prepared the sample based on our suggestion. Please find the link below. 
 
 
 
And we noticed you have used the ButtonGroup component. For more details about ButtonGroup, we suggest you refer to the below links. 
 
 
 
Could you please check the above links and get back to us if we misunderstood your requirement or if you need any further assistance on this? 
 
Regards, 
Janakiraman S. 


Marked as answer
Loader.
Up arrow icon