-
-
Save SQL-MisterMagoo/bc5713fb26bf84bf810d48d1f45c361a to your computer and use it in GitHub Desktop.
@foreach (var item in new string[] { "AspNetCore","AspNet","SomeJsThingWhatever"}) | |
{ | |
<div> | |
<input type="radio" name="technology" id="@item" value="@item" @onchange="RadioSelection" checked=@(RadioValue.Equals(item,StringComparison.OrdinalIgnoreCase)) /> | |
<label for="@item">@item</label> | |
</div> | |
} | |
<div> | |
<label>Selected Value is @RadioValue</label> | |
</div> | |
@code | |
{ | |
string RadioValue = "aspnetcore"; | |
void RadioSelection(ChangeEventArgs args) | |
{ | |
RadioValue = args.Value.ToString(); | |
} | |
} |
Which SDK is this? The RC one? I can't find the preview 8
Which SDK is this? The RC one? I can't find the preview 8
Sorry that was 0.8 - way before release - I've updated to work on the current released version
The latest version of VS Preview doesn't run .NET 5.0 RC nightly build properly unfortunately :(
Not sure what that had to do with this sample, which will work on the current official release?
Oh ok. I didn't realize Preview 7 (current release) has support InputRadio. Because according to this tweet it's only available on Preview 8.
It doesn't, this sample shows how to use native html radio inputs
ah got it. Thanks.
Beautiful thanks. I don't know why the documentation doesn't work for this but this saved me time thanks!
Only working example I have found. Many thanks.
Thanks a lot! 💯
Thank you for this! Wish I found it days ago. It should be in the Blazor documentation.
This is awesome, thank you so much! Life saver...
Good Stuff, Keep it up :)