Hi. I'm using the RadDataFilter in unbound mode. Some of the fields have custom editor, using combobox.
My question is: how can I display a default value for such fields?
Specifically, when I do the following it doesn't work:
//The following two lines are inside radDataFilter_EditorCreated event handler
((ComboBox)e.Editor).ItemsSource = Cultures.Select(c => c.CultureName).ToList();
((ComboBox)e.Editor).SelectedIndex = 0; //This does not select the first item in the combo
Any input in this regard is highly appreciated.
Thank you,
Waleed
My question is: how can I display a default value for such fields?
Specifically, when I do the following it doesn't work:
//The following two lines are inside radDataFilter_EditorCreated event handler
((ComboBox)e.Editor).ItemsSource = Cultures.Select(c => c.CultureName).ToList();
((ComboBox)e.Editor).SelectedIndex = 0; //This does not select the first item in the combo
Any input in this regard is highly appreciated.
Thank you,
Waleed