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

Center dropdown

3 Answers 59 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Patrik Johansson
Top achievements
Rank 1
Patrik Johansson 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 1
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
Patrik Johansson
Top achievements
Rank 1
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 1
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
Patrik Johansson
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Patrik Johansson
Top achievements
Rank 1
Share this question
or