Hello,
I am having issues getting the dropdownlist component to select an item. I can get the items in the data source to appear correctly, but clicking them does not add the value. Rather, "undefined" remains in the box.
My item class is as follows:
public class Project
{
public int Id {get;set;}
public string Name {get;set;}
public string Number {get;set;}
}
The component is here:
<SfDropDownList TItem="Project" TValue="int" DataSource="_projects"> //_projects is just a list of projects and is initialized and awaited during OnInitializedAsync()
<DropDownListFieldSettings Text="Name" Value="Id"></DropDownListFieldSettings>
</SfDropDownList>
Changing the int to int? removes the undefined issue, but still does not let me select any of the items on the list.
Please let me know if you need further information. I appreciate the assistance.