Pictures in ComboBoxAdv

Hi,

I'd like to have a combo box that displays either just pictures or pictures with text.

From looking at the ComboBoxAdv I see that there are two properties that imply this can be done (and you can associated an image list with the control too). However I can't get it to work.

The properties are:

ShowImageInTextBox and
ShowImagesInComboListBox

Does anyone have any idea how to do this?

Thank you.

Ben.

3 Replies

JS Jeba S Syncfusion Team August 14, 2007 12:35 PM UTC

Hi Ben,

Thank you for posting query to us.

You can use ComboBoxAdv.ImageList property to get/set ImageList for control and ComboBoxAdv.ImageIndexes property to set image Index for specified item.


//assign first image in ComboBoxAdv.ImageList to second item in items list.
this.comboBoxAdv1.ImageIndexes[2] = 0;


Then use ComboBoxAdv.ShowImageInTextBox property to show images in TextArea and use ShowImagesInComboListBox in the Listbox.

Please refer the sample which implements the above said feature:
http://websamples.syncfusion.com/samples/Tools.Windows/F67325/main.htm

Please refer this KB article which explains "How do I assign images to ComboBoxAdv items?"
http://www.syncfusion.com/support/kb/tools/Default.aspx?ToDo=view&questId=406

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,
Jeba.


MS Michael Sabin October 19, 2007 08:36 PM UTC

Is there any way to set the images when you use a Datasource?


JS Jeba S Syncfusion Team October 26, 2007 02:37 PM UTC

Hi Michael,

Sorry for the delay in response.

Yes. You can set the images when you use a Datasource. Pleas refer the below sample which shows the idea:
http://websamples.syncfusion.com/samples/Tools.Windows/F67325_New/main.htm

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.

Loader.
Up arrow icon