We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Use ImageIndexItem

Thread ID:

Created:

Updated:

Platform:

Replies:

127750 Dec 6,2016 11:11 AM Dec 8,2016 04:27 AM Windows Forms 1
loading
Tags: ComboBoxAdv
Alexander Hefele
Asked On December 6, 2016 11:11 AM

Hi,
i try to set a ImageIndexItem to an ComboBoxAdv Item.

read at Manual i can use somethink like

myComboboxAdv.ItemsImageIndexes.Add(New Syncfusion.Windows.Forms.Tools.ComboBoxAdv.ImageIndexItem(myComboboxAdv, "ItemName", 0))

But this function add a 'new' entry.

unfortunately the myComboboxAdv.Items.add("ItemName") function Adds a ImageIndex-Entry also automatically 
So at MyComboBoxAdv.ImageIndexes are dublicate entrys for one Item and the Image would't shown.

how can i change the index of the Image that should be shown for a existing item?
Because i would like to change the image while runtime it is more interesting to change the image instead of set the correct index by item.add()

Keerthana Jegannathan [Syncfusion]
Replied On December 8, 2016 04:27 AM

Hi Alexander,   
   
Thank you for contacting Syncfusion support.   
   
We suspect your requirement is to change the image index of the ComboBoxAdv item. If so, this requirement can be met by using the  “DrawItem” of the ListBox​​​. We have prepared a sample in which we have drawn the image for the ComboBox item based on the image index using “DrawItem” event and it can be downloaded from the below location.   
   
Sample: ComboBoxItemImageIndex   
   
Please let us know, if we misunderstood your query.   
   
Regards,   
Keerthana J.   


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;