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

RadComboBox Displying Images

1 Answer 152 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gokulakrishnan
Top achievements
Rank 1
Gokulakrishnan asked on 24 Sep 2010, 12:39 PM
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();

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Sep 2010, 01:39 PM
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.
Tags
ComboBox
Asked by
Gokulakrishnan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or