This question is locked. New answers and comments are not allowed.
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
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