Change color in a DropDownButtonElement-DropDownMenu for the vertical line

3 posts, 1 answers
  1. Oliver
    Oliver avatar
    8 posts
    Member since:
    Nov 2015

    Posted 11 Jan Link to this post

    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. Answer
    Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 14 Jan Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Oliver
    Oliver avatar
    8 posts
    Member since:
    Nov 2015

    Posted 14 Jan Link to this post

    Hi Dimitar,

    that works fine.

    Thanks a lot!

    Kind regards
    Oliver

     

     

Back to Top