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

Center dropdown

3 Answers 180 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
improwise
Top achievements
Rank 1
Iron
Iron
improwise asked on 07 May 2012, 10:55 AM
Is there a simple way to have the dropdown (the "child menu") centered instead of aligned left or right? I guess you could write a function to calculate it and then use OffsetX property, but that seems very complicated. This should be a standard option I believe in the designer. 

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 May 2012, 11:17 AM
Hi Patrik Johansson,

I suppose that you want to align the text inside the dropdown of RadComboBox to center. Try the following css.

CSS:
<style type="text/css">
     html > body .RadComboBoxDropDown .rcbItem,  .RadComboBoxDropDown .rcbHovered
      {
         text-align:center !important;
      }
</style>

Thanks,
Princy.
0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 07 May 2012, 11:35 AM
Thanks for answering. What I want though is to center the actual dropdown menu (the child menu) below the "opener". So, for example, if I have the RadComboBox in the middle of the page, I want the child menu to expand so that the middle of that is aligned with the middle of the page. Ie not the left or right. 
0
Princy
Top achievements
Rank 2
answered on 07 May 2012, 01:27 PM
Hi Patrik Johansson,

Can you please clarify your requirement by providing a screenshot for further assistance.

Thanks,
Princy.
Tags
ComboBox
Asked by
improwise
Top achievements
Rank 1
Iron
Iron
Answers by
Princy
Top achievements
Rank 2
improwise
Top achievements
Rank 1
Iron
Iron
Share this question
or