Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Panels, Labels, GroupBox > Can RadPanel only have bottom border (or top etc)?

Answered Can RadPanel only have bottom border (or top etc)?

Feed from this thread
  • Josh avatar

    Posted on Feb 15, 2011 (permalink)

    Hey all,

    I can't seem to find a way to get the panel to only have a bottom border. It's probably pretty obvious but everything I'm trying isn't working.

    So far I've gone into the smart tag for the panel control and messed around with the 'width' property of the various borders under the layout and box area's of the properties. I've done this with both the UI.RadPanelElement and BorderPrimitive areas. I'm setting the width on the side I don't want to show to 0 and that's not working. I've also tried -1 as well as changing the BorderThickness to no avail.

    Appreciate any help with this!

    Reply

  • Posted on Feb 15, 2011 (permalink)

    Hi Josh,

    In order to control each border, you first need to set the box style of the border. You can then change the border thickness for each

    Me.RadPanel1.PanelElement.PanelBorder.BoxStyle = BorderBoxStyle.FourBorders 
    Me.RadPanel1.PanelElement.PanelBorder.TopWidth = 0

    Have a look at this link which explains the border primitive that will explain all this in detail.
    Hope that helps
    Richard

    Reply

  • Josh avatar

    Posted on Feb 15, 2011 (permalink)

    Hey Richard,

    Thanks buddy, that did the trick! I just needed to set the BoxStyle = FourBorders. Once again, you're the man!

    Best Regards,
    Josh

    Reply

  • Posted on Feb 15, 2011 (permalink)

    You're welcome!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Panels, Labels, GroupBox > Can RadPanel only have bottom border (or top etc)?
Related resources for "Can RadPanel only have bottom border (or top etc)?"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]