<RadzenDropDown Placeholder="Select Account..."
Data="@SqlAccountList"
TextProperty="AccountName"
ValueProperty="Id"
Change="@(args => OnDropdownChange(args, "1"))"
Style="width: 250px; margin-bottom: 20px"
@bind-SelectedItem="@_selectedItem">
<Template Context="sqlUserContext">
@((sqlUserContext as SqlUser).AccountName)
</Template>
</RadzenDropDown>
and in my code section
private object _selectedItem;
and when I want to access the various properties
SelectedSqlAccount = (SqlUser)_selectedItem; << This would give you the selected object (SqlUser)
SqlAccountList defined as....
IEnumerable<SqlUser> SqlAccountList
is the object I'm binding too