Hi Belle Cruz,
We are able to achieve your requirement by using the below shown code.
[Index.razor]:
|
<div class="control-section">
<div class="radio-control">
<h4 class="row">Select a payment method</h4>
<div class="row">
<SfRadioButton Label="2/15/2022" Name="payment" Value="15-2-2022" Checked="@checkedValue"></SfRadioButton>
</div>
<div class="row">
<SfRadioButton Label="2/16/2022" Name="payment" Value="16-2-2022" Checked="@checkedValue"></SfRadioButton>
</div>
<div class="row">
<SfRadioButton Label="2/17/2022" Name="payment" Value="17-2-2022" Checked="@checkedValue"></SfRadioButton>
</div>
<div class="row">
<SfRadioButton Label="2/18/2022" Name="payment" Value="18-2-2022" Checked="@checkedValue"></SfRadioButton>
</div>
</div>
</div>
@code {
private string checkedValue = DateTime.Now.Date.ToString("dd-M-yyyy");
}
|
For your convenience, we have prepared the sample to achieve your requirement. Please find the sample link below,
Could you please check the above links and explain your query in detail, if we misunderstood your requirement or if you need any further assistance on this? Based on that we will check and provide you a better solution quickly.
Regards,
Janakiraman S.