I have used the following coding to setup a Razden Drop Down
@page "/Admin/Test"
<RadzenTemplateForm Data="OrgInfo" Style="height:100%; width:100%;" > <RadzenRow Gap="1rem" Style="width:100%; height:100%; max-width:100%; max-height:100%"> <RadzenColumn Size="12" Style="width:100%"> <RadzenStack Gap="0rem" Style="width:100%"> <RadzenFieldset Text="Organisation Properties"> <RadzenStack Gap="0rem"> <RadzenRow> <RadzenColumn Size="1"> <RadzenLabel Text="Is Display Node:" Style="font-size: 12px" Component="drpDisplayNode" /> </RadzenColumn> <RadzenColumn Size="3" Style="font-size: 12px"> <RadzenDropDown @bind-Value="OrgInfo.IsDisplay" TValue="string" Multiple="false" Data="YesNoData" Name="drpDisplayNode" ValueProperty="value" TextProperty="text" /> </RadzenColumn> </RadzenRow> </RadzenStack> </RadzenFieldset> </RadzenStack> </RadzenColumn> </RadzenRow> </RadzenTemplateForm>
@code {
private class RefOrganisation
{
public string IsDisplay;
}private class YesNo { public string value; public string text; } private RefOrganisation OrgInfo = new(); private static List<YesNo> YesNoData = new() { new YesNo() { value = "Y", text = "Yes" }, new YesNo() { value = "N", text = "No" } };
}
When the page runs, then i try select a value in the drop down, the drop down closes, and no value is then inserted into the bound value variable, and the drop down stops working completely, as in the drop down no longer opens at all.
Not exactly sure if this is something i am doing or if there is an actual underlying problem. Any advise or suggestions to fix this would be appreciated.