how can i unchecked all radio button

im making clear query filter method, but when im doing that. I clear all the query but radio button design still intact.

so if im clicking Paid Invoice in Radio button, then my query will be fired and my datagrid will change. but when i clear the query, Paid Invoice in radio button still in checked condition but the datagrid clear of any filter query.

how can i unchecked all radio button from method?
 
*this is my clear filter query method
 public void ClearFilter()
    {
        GridQuery = new Syncfusion.Blazor.Data.Query();   
    }

1 Reply 1 reply marked as answer

AS Aravinthan Seetharaman Syncfusion Team March 11, 2021 08:41 AM UTC

Hi Indra, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked your query. We can able to uncheck all RadioButton selection by assigning empty string value to binding variable. Please refer the below code snippet. 
 
 
@using Syncfusion.Blazor.Buttons 
 
 
<SfRadioButton Label="Male" Name="options" Value="male" @bind-Checked="stringChecked"></SfRadioButton> 
<SfRadioButton Label="Female" Name="options" Value="female" @bind-Checked="stringChecked"></SfRadioButton> 
 
<SfButton OnClick="Reset">Reset</SfButton> 
 
@code { 
    private string stringChecked = "male"; 
    private void Reset() 
    { 
        stringChecked = ""; 
    } 
} 
 
 
For your reference we have prepared sample here. 
 
 
Could you please check the above details, and get back to us, if you need assistance on this. 
 
Regards, 
Aravinthan S

Marked as answer
Loader.
Up arrow icon