This is a migrated thread and some comments may be shown as answers.

Icons in ComboBox

2 Answers 67 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 11 Aug 2011, 09:11 AM

Hi,

I need to use a combobox with two columns one for a string say name and one for an icon. I also need to fill the combobox – ItemSource, from my viewmodel. I then set the selectedItemBinding to the value I receive from the database. I’v done this many time but not with an icon, how can I bind the icon to the combobox from the datasource? And how do I setup the combobox to display icons?

Thanks

Peter

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Aug 2011, 01:13 PM
Hello Peter,

You just need to create ItemTemplate for the RadComboBox and add Image control to it.  I've attached some sample code to demonstrate the approach, please download it and examine it.

All the best,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Peter
Top achievements
Rank 1
answered on 20 Aug 2011, 11:47 AM
Thanks Yana,
got it working with your help.

Peter
Tags
ComboBox
Asked by
Peter
Top achievements
Rank 1
Answers by
Yana
Telerik team
Peter
Top achievements
Rank 1
Share this question
or