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

imageurl on the right

2 Answers 105 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 03 Feb 2011, 03:46 AM
I have not been able to get the right search to answer this question.  Quite simply I want the imageurl to display on the right not the left.   The formatting looks messy because the image url comes and goes misaligning the text.

I have tried to implement the ItemTemplate   but cannot get a sample that binds to RadCombo  which is loaded dynamically creating combo items on the fly with search criteria.

protected void ddl_ItemsLoad(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            const int ItemsPerRequest = 40;...

I load up the items like this...   I also apply a search criteria on result to subset my response back.

                RadComboBoxItem item = new RadComboBoxItem(name, row["ID"].ToString());
                if (Manufacturer)
                    item.ImageUrl = "~/images/Manufacturer.png";
                result.Add(item);

I just cannot get the right magic to show the layout the way I want.   It works perfectly showing the image on the left, not where I want it.

2 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 07 Feb 2011, 09:35 AM
Hello Ken,

You could try adding the following css class selector to change the position of the image:

div.RadComboBoxDropDown img.rcbImage {
    float: right;
}

All the best,
Kate
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Ken
Top achievements
Rank 1
answered on 15 Feb 2011, 10:55 PM
Thank you very much.   I have installed this and it is fine.   This one would be a good one for the Tips page.
Tags
ComboBox
Asked by
Ken
Top achievements
Rank 1
Answers by
Kate
Telerik team
Ken
Top achievements
Rank 1
Share this question
or