Change Group Border

3 posts, 0 answers
  1. Robert
    Robert avatar
    17 posts
    Member since:
    Dec 2015

    Posted 10 Feb 2016 Link to this post


    I would like to remove the top and bottom border of each ribbon group at run time for a cleaner look. Have tried this in the form constructor with no success. Any ideas?

    Dim myRibbonBarTab As RibbonTab = CType(Me.RadRibbonBar1.CommandTabs(0), RibbonTab)

    For Each group As RadRibbonBarGroup In myRibbonBarTab.Items
            group.GroupBorder.BoxStyle = BorderBoxStyle.FourBorders
            group.GroupBorder.TopWidth = 0
            group.GroupBorder.BottomWidth = 0


    Thanks for any tips that point me in the right direction.





  2. Dimitar
    Dimitar avatar
    2566 posts

    Posted 11 Feb 2016 Link to this post

    Hello Robert,

    Thank you for writing.

    You should set the PaintUsingParentShape property as well:
    Me.radRibbonBarGroup1.GroupBorder.BoxStyle = Telerik.WinControls.BorderBoxStyle.FourBorders
    Me.radRibbonBarGroup1.GroupBorder.TopWidth = 0
    Me.radRibbonBarGroup1.GroupBorder.BottomWidth = 0
    Me.radRibbonBarGroup1.GroupBorder.PaintUsingParentShape = False
    Me.radRibbonBarGroup1.GroupBorder.LeftColor = Color.Red
    Me.radRibbonBarGroup1.GroupBorder.RightColor = Color.Red

    Let me know if I can assist you further.
    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. Robert
    Robert avatar
    17 posts
    Member since:
    Dec 2015

    Posted 11 Feb 2016 in reply to Robert Link to this post

    Hi Dimitar,

    It works. That was indeed the missing bit. Thank you.



Back to Top