Image is not displaying for selected Item in Rad Combobox

2 posts, 1 answers
  1. Ragupathi
    Ragupathi avatar
    41 posts
    Member since:
    Jul 2008

    Posted 02 Dec 2008 Link to this post

               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
  2. Answer
    Nick
    Admin
    Nick avatar
    767 posts

    Posted 05 Dec 2008 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top