This question is locked. New answers and comments are not allowed.
Hi
I am adding gif files in to my Radcombobox items. But while adding the images, combobox is taking time to load those images.
Please find the following code which I used to populate the images.
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);
}
RowCount will be around 450. If I remove the images then loading data in to the combo box is fast.
Can you please let me know any thing I can do for improving the performance. ?
Thanks in Advance.
Raghu
I am adding gif files in to my Radcombobox items. But while adding the images, combobox is taking time to load those images.
Please find the following code which I used to populate the images.
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);
}
RowCount will be around 450. If I remove the images then loading data in to the combo box is fast.
Can you please let me know any thing I can do for improving the performance. ?
Thanks in Advance.
Raghu