Icons in ComboBox

3 posts, 0 answers
  1. Peter
    Peter avatar
    4 posts
    Member since:
    Aug 2011

    Posted 11 Aug 2011 Link to this post

    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. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Peter
    Peter avatar
    4 posts
    Member since:
    Aug 2011

    Posted 20 Aug 2011 Link to this post

    Thanks Yana,
    got it working with your help.

    Peter
Back to Top