I have tried to implement the dropdownlist and the data is being populated to the control, but the control will not dropdown when selected on.
I have tried to changed from Server/Prerender and also tried a static list. I also have the same issues with Telerik menus. What do I have configured wrong.
Running Blazor UI 2.1.1
<TelerikDropDownList Data="@DropDownListData" @bind-Value=@SelectedValue ValueField="ID" TextField="Organization">
</TelerikDropDownList>
<br />Selected product: @SelectedValue
@code {
public IEnumerable<OrgModel> DropDownListData { get; set; }
public int SelectedValue { get; set; } = 3;
WeatherForecast[] forecasts;
OrgModel[] Orgs;
protected override async Task OnInitializedAsync()
{
forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
DropDownListData = await OrgService.Get_OrgList_Async();
}
//protected async Task OnAfterRenderAsync()
//{
// forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
// DropDownListData = await OrgService.Get_OrgList_Async();
//}