Hello,
I'm using a DataSource for my Combo Editor. I need an Image for each Item in the Combo Editor.Is there a way that lets me set the Image more comfortable?May be via a specified Image in the DataSource?
At the moment I'm using this:// Set the DataSourcethis.ultraComboEditor1.DataSource = someDataSource;// Set the Imagesforeach (ValueListItem item in this.ultraComboEditor1.Items){ item.Appearance.Image = someImage;}
Hi,
could anyone of the IG team be so nice to answer this post.
I'm looking for the same thing.
Cheers
No, there is no easier way to assign the image.
I'm not sure what you mean by "encapsulate the combo editor to extend it by this functionality".
Do you mean you want a property on the UltraCombo that specifies which column of the data source to use to determine the image for the DisplayMember column? That's something we could add in a future release, and it would be pretty easy for us to do.
I encourage you to Submit a feature request to Infragistics.
My post was an aswer to MISUMI's post.
But yes, something like an ImageMember property or something or an event that is fired for each item in the list where an image can be assigned to.
By encapsulating I mean to derive from UltraComboEditor something like this:
public class ImageComboBox : UltraComboEditor{ public override/new object DataSource { set { base.DataSource = value; // Apply images... } }}