Please assist me understand how to add event triggers to a dropdown menu such that when an item is selected from the dropdown it should assign a value in another TextBox.
Also when the radiobutton is selected, it can either enable or disable a control. Currently this is not well explained in the document
'
Handling events is explained in the getting started section of the documentation and also shown in the online demo. For example for RadzenSwitch: Blazor Switch Component | Free UI Components by Radzen
Disabling is included in the demo of every component too- you need to set the Disabled attribute. If you want to toggle it - set it to a field of your page e.g.
<RadzenSwitch Change=@OnChange />
<RadzenTextBox Disabled="@flag" />
@code {
bool flag;
void OnChange(bool value)
{
flag = value;
}
}
You can also do it without handling the Change vent:
<RadzenSwitch @bind-Value=@flag />
<RadzenTextBox Disabled="@flag" />
@code {
bool flag;
}
Thanks korchev,
I think i have noticed something. This works perfectly on a new blaxor page but not on a dialog view.
I needed it on a dialog view but i realized the value was populated when you click the putton or when you close and reopen the dialog. It was not happening on change.
How can you help/advise on this?
You can create a page for the dialog and use it that way.
Great. let me checkout and see.
Thanks for the support. ![]()
Greatly appreciated

