I am filling my drop down from a data table. The Value and the Text are the same string. The Value
is also a string that matches the ValueField string. But when the DropDown Renders the value is not selected
and just shows a blank. How do I get the selected value to be selected?
<TelerikDropDownList Data="@MyVM.ContactFormatList"
TextField="@nameof(QuerySelector.ColumnName)"
Filterable="true"
ValueField="@nameof(QuerySelector.ColumnName)"
DefaultText="Select Contact Format"
@bind-Value="@MyVM.selectedContactFormat">
</TelerikDropDownList>
MyVM.ContactFormatList = list of QuerySelectors
public class QuerySelector
{
public string ColumnName { get; set; }
public string Value { get; set; }
}
Property in my MyVM
public string selectedContactFormat { get; set; }