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

Align DropDown to right

2 Answers 577 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Martin Roussel
Top achievements
Rank 1
Martin Roussel asked on 19 Mar 2013, 02:19 PM
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 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Mar 2013, 04:42 AM
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.
0
Martin Roussel
Top achievements
Rank 1
answered on 20 Mar 2013, 02:20 PM
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
Tags
AutoCompleteBox
Asked by
Martin Roussel
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Martin Roussel
Top achievements
Rank 1
Share this question
or