Hi all, I'm using blazor client-side and i already updated to .Net 5 official release, but now, the ddl controls does not work, it shows an empty and I cannot change it.
I do not if i'm missing something.
<SfDropDownList TItem="GenericKeyValuePairDto" TValue="string" PopupHeight="230px" DataSource="@ProductType">
<DropDownListFieldSettings Text="Text" Value="Id"></DropDownListFieldSettings>
</SfDropDownList>
namespace DemoDDL.Pages
{
public class IndexBase : ComponentBase
{
protected List<GenericKeyValuePairDto> ProductType { get; set; } = new List<GenericKeyValuePairDto>();
protected string Value { get; set; }
protected override void OnInitialized()
{
LoadProductTypes();
}
private void LoadProductTypes()
{
ProductType.Add(new GenericKeyValuePairDto
{
Id = "1",
Text = "Blazor"
});
ProductType.Add(new GenericKeyValuePairDto
{
Id = "2",
Text = "Angular"
});
}
}
public class GenericKeyValuePairDto
{
public string Id { get; set; }
public string Text { get; set; }
}
}
I'm attaching a very simple example to reproduce the issue.
Attachment:
DemoDDL_4459344f.zip