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

Image is not displaying for selected Item in Rad Combobox

1 Answer 66 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ragupathi
Top achievements
Rank 1
Ragupathi asked on 03 Dec 2008, 05:04 AM
           Hi,
                I am adding the images for RadCombobox items.I am able to see the images for Radcombobox items. But When I select  any of the item, the image is not getting displayed for the selected item.

                        RadComboBoxItem item;                   
                         for (int i = 0; i < dtTables.Rows.Count; i++)
                        {
                            item = new RadComboBoxItem();
                            if (dtTables.Rows[i][1].ToString() == "Table")
                            {
                                item.Image = Image.FromFile(imagepath1);
                                item.TextImageRelation = TextImageRelation.ImageBeforeText;
                            }
                            else
                            {
                                item.Image = Image.FromFileimagepath2);
                                item.TextImageRelation = TextImageRelation.ImageBeforeText;
                            }
                            item.Text = dtTables.Rows[i][0].ToString();
                            cbx.Items.Add(item);
                        }
Can any one please hep me regarding this issue ?
thans in Advance.
Raghu

1 Answer, 1 is accepted

Sort by
0
Accepted
Nick
Telerik team
answered on 05 Dec 2008, 04:48 PM
Hello Ragupathi,

Thank you for your question.

This is not a bug, but the default behavior - we do not support images in the textbox. We are considering adding this feature to our control.

Do not hesitate to write me back if you have more questions.

Regards,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Ragupathi
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or