CommandBarDropDownButton - menu sizing issue

2 posts, 1 answers
  1. David A.
    David A. avatar
    126 posts
    Member since:
    Aug 2008

    Posted 18 Jun 2011 Link to this post


    When using a CommandBarDropDownButton and having two menu items, the sizing appears to be off (see attached image) and there is a lot of extra padding at the bottom.  This works fine with 3 or more menu items.  Is there a way to correct this?

    Thank you.
  2. Answer
    Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 22 Jun 2011 Link to this post

    Hello David A,

    Thank you for your question.

    This is a known issue of CommandBarDropDownButton which will be addressed in the next major release. For the time being, I can suggest the following workaround:

    public class MyCommandBarDropDownButton : CommandBarDropDownButton
        public MyCommandBarDropDownButton()
            this.arrowButton.Arrow.ForeColor = Color.FromArgb(255, 21 ,66, 139);
        public override void ShowDropdown()
            RadControl parentControl = (this.ElementTree.Control as RadControl);
            if (parentControl != null)
                dropDownMenu.ThemeName = parentControl.ThemeName;
            dropDownMenu.Show(this, 0, this.Size.Height);
        protected override Type ThemeEffectiveType
                return typeof(CommandBarDropDownButton);

    I hope this is helpful. Feel free to ask if you have any additional questions.

    All the best,
    Ivan Todorov
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. DevCraft R3 2016 release webinar banner
Back to Top