@using Syncfusion.EJ2.Blazor.Buttons
<EjsRadioButton @ref="radiobtn" Label="Option 1" Name="options" Value="option1"></EjsRadioButton>
<EjsRadioButton Label="Option 2" Name="options" Value="option2" Checked="true"></EjsRadioButton>
<button @onclick="@getSelectedValue">Get Value</button>
@code{
EjsRadioButton radiobtn;
public async void getSelectedValue()
{
string obj = await radiobtn.GetSelectedValue();
}
}
|
@using Syncfusion.EJ2.Blazor.Buttons
<EjsRadioButton @ref="radiobtn1" Label="Option 1" Name="options" Value="option1" OnChange="onChange">
</EjsRadioButton>
<EjsRadioButton @ref="radiobtn2" Label="Option 2" Name="options" Value="option2" Checked="true" OnChange="onChange1"></EjsRadioButton>
@code{
EjsRadioButton radiobtn1;
EjsRadioButton radiobtn2;
public async void onChange()
{
string obj = await radiobtn1.GetSelectedValue();
}
public async void onChange1()
{
string obj1 = await radiobtn2.GetSelectedValue();
}
}
|
@using Syncfusion.EJ2.Blazor.Buttons
<EjsRadioButton @ref="radiobtn" Label="Option 1" Name="options" Value="option1" OnChange="onChange">
</EjsRadioButton>
<EjsRadioButton Label="Option 2" Name="options" Value="option2" OnChange="onChange"></EjsRadioButton>
@code{
EjsRadioButton radiobtn;
public async void onChange()
{
string obj = await radiobtn.GetSelectedValue();
}
}
|