RadDropDownButton Menu

2 posts, 0 answers
  1. Mike
    Mike avatar
    16 posts
    Member since:
    Mar 2018

    Posted 06 Feb 2019 Link to this post



    I am trying to style a RadDropDownButton in a winform, and am having difficulty determining where or how to edit the dropdown item list.

    I've edited the shape of the RadDropDownButton by changing the ActionButton, ArrowButton and BorderElement to rounded corners, but now it looks slightly odd when the button is clicked (see pic attached).  

    I would like to move the menu to be centered below the button text to the right of the rounded corners, and maybe try rounding the corners and changing the backcolor of the menu items as well.  I am not sure how to access the visual elements of the items, or dropdown menu list.

    How / where can this be done?




  2. Dimitar
    Dimitar avatar
    2881 posts

    Posted 07 Feb 2019 Link to this post

    Hello Mike,

    The following snippet shows how you can access the popup element or directly style each item:
    radMenuItem1.FillPrimitive.BackColor = Color.Red;
    radMenuItem1.BorderPrimitive.ForeColor = Color.Green;
    var popup = radDropDownButton1.DropDownButtonElement.DropDownMenu.PopupElement as RadDropDownMenuElement;
    popup.Fill.BackColor = Color.Red;
    popup.LeftColumnFill.BackColor = Color.Red;

    I hope this helps. Should you have any other questions do not hesitate to ask.
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top