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

Image size

1 Answer 78 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 01 Mar 2013, 03:49 PM
Hi there,

I have creates a combobox - Text with icons (http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/textwithicons/defaultvb.aspx?#qsf-demo-source)

I use the following code:
//fill radcombobox
            foreach (DataRow BrandRow in Brand.BrandTable.Rows)
            {
                RadComboBoxItem Item = new RadComboBoxItem();
                Item.Value = (string)BrandRow["Brand"];
                Item.Text = (string)BrandRow["Description"];
                Item.ImageUrl = "~/Images/Brands/" + (string)BrandRow["Brand"] + ".jpg";
                cbBrand.Items.Add(Item);
            }

The images are displayed with different height and width according to their definition.
Is their a way to set the width and height of the images automatically to 16 x 16?
 
Thanx!

Marcel

1 Answer, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 06 Mar 2013, 09:34 AM
Hi Marcel,

Images should be the same size - 16x16 in your source files in order to display them in the same way.

Kind regards,
Helen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
Marcel
Top achievements
Rank 1
Answers by
Helen
Telerik team
Share this question
or