imageurl on the right

3 posts, 0 answers
  1. Ken
    Ken avatar
    2 posts
    Member since:
    Jan 2011

    Posted 02 Feb 2011 Link to this post

    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. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 07 Feb 2011 Link to this post

    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.
  3. Ken
    Ken avatar
    2 posts
    Member since:
    Jan 2011

    Posted 15 Feb 2011 Link to this post

    Thank you very much.   I have installed this and it is fine.   This one would be a good one for the Tips page.
Back to Top