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

RadDropDownButton Menu

1 Answer 115 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 06 Feb 2019, 04:00 PM

Hello,

 

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?

Thanks

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 07 Feb 2019, 11:28 AM
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.
 
Regards,
Dimitar
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.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Mike
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or