Align DropDown to right

3 posts, 0 answers
  1. Martin Roussel
    Martin Roussel avatar
    246 posts
    Member since:
    Jan 2010

    Posted 19 Mar 2013 Link to this post

    Hi, Im using the RadAutoCompleteBox on the right side of my page and when DropdDown appears, it is aligned with the left side of the textbox with width expanding to the right (and I miss some portion of the DropDown content if too wide). Is there a way to align the DropDown to the right of the input textbox and have the its width growing to the left? Im not sure if the DropDownPosition property is for that since it doesnt seem to be documented in control's documentation.

    TIA

    Martin
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 19 Mar 2013 Link to this post

    Hi Martin,

    Please try the following CSS to align the drop-down to the right.

    CSS:
    <style type="text/css">
        .RadAutoCompleteBoxPopup
        {
            float:right !important;
        }
    </style>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Martin Roussel
    Martin Roussel avatar
    246 posts
    Member since:
    Jan 2010

    Posted 20 Mar 2013 Link to this post

    Thanks Princy,

    just to help others asking the same question, I also had to set RadAutoCompleteBoxPopup's parent div width since it was too wide and aligned to the left. Ive set it to the width of my input textbox:

    .racSlide
    {
        width: 100px !important; /*set width equal to the width of your RadAutoCompleteBox input textbox*/
    }

    Martin
Back to Top