I'm trying to check a radio button depending on a boolean value that I have but I don't see any online resources which can help me do so.
Here is my code:
<RadzenRadioButtonList @bind-Value="@value" TValue="int">
<RadzenRadioButtonListItem Text="sayHello" Value= "1" (Close bracket)
<RadzenRadioButtonListItem Text="sayBye" Value="2" (Close bracket)
bool sayHello = true;
bool sayBye = false;
If the sayHello is true, I want to check the first radzenRadiobutton, else I will check the other button. I will have buttons to change the sayHello and sayBye variables as well.
Please ignore the obvious syntax errors as the code dissapears when I type close brackets.
Could anyone please advise me on how I can do this please? Thank you!