RadComboBox Displying Images

2 posts, 0 answers
  1. Gokulakrishnan
    Gokulakrishnan avatar
    2 posts
    Member since:
    Sep 2010

    Posted 24 Sep 2010 Link to this post

    Is it possible to add an image to the selected item of the radcombobox?I added my image in the items.I want see both images and text in it.
    I want the code in aspx.cs

              RadComboBoxItem item = new RadComboBoxItem();
                item.Text = "Layout1";
                item.ImageUrl=@"\47.gif";
                RadComboBox1.Items.Add(item);
                RadComboBox1.DataBind();
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Sep 2010 Link to this post

    Hello,


    Setting the ImageUrl did work for me and showed up the image with RadComboBoxItem.

    CS:
                RadComboBoxItem item = new RadComboBoxItem();
                item.Text = "Layout1";
                item.ImageUrl=@"../47.gif";
                RadComboBox1.Items.Add(item);

    Check whether you have set correct path.

    And, if you want to show image in textbox element of combo, then the code library will be of help.


    -Shinu.
Back to Top