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

Change color in a DropDownButtonElement-DropDownMenu for the vertical line

2 Answers 96 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 11 Jan 2016, 12:17 PM

Hi all,

is there a possibility to erase (or set it to color white) the small vertical line (see attached pictures) in a DropDownButtonElement-DropDownMenu?
Or is it the radMenuSeparatorItem?

FillPrimitive fp = burgermenu.DropDownButtonElement.FindDescendant<FillPrimitive>();
   fp.ForeColor = Color.White;
   fp.BackColor = Color.White;
   fp.GradientStyle = Telerik.WinControls.GradientStyles.Solid;

didn't work.

Kind regards
Oliver

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 14 Jan 2016, 09:09 AM
Hi Oliver,

Thank you for writing.

It appears that the left column is visible and this is where the line comes from. You can hide it like this:
((RadDropDownMenuElement)radDropDownButton1.DropDownButtonElement.DropDownMenu.PopupElement).LeftColumnElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Oliver
Top achievements
Rank 1
answered on 14 Jan 2016, 09:18 AM

Hi Dimitar,

that works fine.

Thanks a lot!

Kind regards
Oliver

 

 

Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Oliver
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Oliver
Top achievements
Rank 1
Share this question
or