I need to enter a few specific string values as for example "Indoor" "Outdoor" and "Both" in a form or string[1] with values "I", "O" or "B" but only examples I see used for the value number. Is it possible to have something like this:
<RadzenRadioButtonList @bind-Value=@value TValue="string" class="mb-5">
where TValue is not int but string?
I need to enter a few specific string values as for example "Indoor" "Outdoor" and "Both" in a form or string[1] with values "I", "O" or "B" but only examples I see used for the value number. Is it possible to have something like this:
<RadzenRadioButtonList @bind-Value=@value TValue="string" class="mb-5">
<Items>
<RadzenRadioButtonListItem Text="Indoor" Value="I" />
<RadzenRadioButtonListItem Text="Outdoor" Value="O" />
<RadzenRadioButtonListItem Text="Both" Value="B" />
</Items>
</RadzenRadioButtonList>
where TValue is not int but string?
Sorry, I did not realize that I needed to set a special character for visibility.
There is no problem to use string TValue.
<RadzenRadioButtonListItem Text="Both" Value="@("B")" />
@Djordje, you should try a free AI chat bot like Microsoft copilot, etc for these kinds of issues. Just paste in your affected element, and the error you're getting, and it will tell you what's going on and how to fix it.
SloSuenos
Thank you Vladimir
and thank you SloSuenos