Although the BackGroundImage
property is accessible, it is unfortunately inherited from System.Windows.Forms.Control and does not apply to RadComboBox.
As to the your second question, if I understand correctly your goal is to add an image to every item that is shown in the drop-down window. Such case is demonstrated in the "Music Collection" example of the RadComboBox. In this example an image list control is used and the corresponding image index is retrieved from the data source. Then on the RadComboBox.ItemDataBound
event the images are loaded in the items:
|void cmbArtist_ItemDataBound(object sender, ItemDataBoundeventArgs e) |
| RadComboBoxItem item = e.DataBoundItem as RadComboBoxItem; |
| item.TextImageRelation = TextImageRelation.ImageBeforeText; |
| PropertyDescriptor desc = TypeDescriptor.GetProperties(e.DataItem).Find("ImageIndex", false); |
| item.ImageIndex = (int)desc.GetValue(e.DataItem); |
I hope this helps!
All the best,
the Telerik team