This question is locked. New answers and comments are not allowed.
I'm trying to bind an enum to a DataFormComboBoxField but I'm having trouble. I can load the combo box with the items from the enum but I can't set the Selected Item. What am I doing wrong? Here the AccountType is my enum and AccountTypesSource is just the result of a telerik EnumDataSource
<
telerik:DataFormComboBoxField
SelectedValuePath
=
"AccountType"
DataMemberBinding
=
"{Binding AccountType, Mode=TwoWay}"
ItemsSource
=
"{Binding AccountTypesSource}"
/>
public
EnumDataSource AccountTypesSource
{
get
{
return
new
EnumDataSource { EnumType =
typeof
(AccountTypes) };
}
}