I'm adding an enumeration to a combobox using the following code:
comboBox.DisplayMemberPath =
"Name";
comboBox.SelectedValuePath =
"Name";
List<RadComboBoxItem> items = new List<RadComboBoxItem>();
foreach (FieldInfo fInfo in enumType.GetFields(BindingFlags.Public | BindingFlags.Static))
{
//object value = fInfo.GetValue(null);
RadComboBoxItem item = new RadComboBoxItem();
item.Name = fInfo.Name;
items.Add(item);
}
comboBox.ItemsSource = items;
The values are getting into the combobox, I just can't see them! I drop it down, I see the right number of BLANK rows, if I click a different row, the correct enumeration is getting set into my business object, but I just can't see anything. The dropdown box is blank.
Telerik 2009.2.812.1030