I have a RadMenu with a sub RadMenuComboItem that I would like to DataBind to. Under the childen collection//RadDropDownList Element - Datasource is greyed out in the editor and if I try the following the code, it runs but nothing is populated in the Combobox.
this.radMenuComboTheme.ComboBoxElement.BindingContext = this.BindingContext;
this.radMenuComboTheme.ComboBoxElement.DataMember = "Theme_Name";
this.radMenuComboTheme.ComboBoxElement.ValueMember = "Theme_Value";
this.radMenuComboTheme.ComboBoxElement.DataSource = applicationThemes;
What am I missing?
this.radMenuComboTheme.ComboBoxElement.BindingContext = this.BindingContext;
this.radMenuComboTheme.ComboBoxElement.DataMember = "Theme_Name";
this.radMenuComboTheme.ComboBoxElement.ValueMember = "Theme_Value";
this.radMenuComboTheme.ComboBoxElement.DataSource = applicationThemes;
According to the documentation :
The RadMenuComboItem allows you to put a drop-down list on a menu. To add items to the combo box work with the Items collection of the RadMenuComboItem.ComboBoxElement property. Because the ComboBoxElement returns a RadDropDownListElement, you can also use data binding to put items in the drop-down list from any data source.