How to change the border color of RadGroupBox and ContentPanel of tabItem

2 posts, 0 answers
  1. Gary
    Gary avatar
    2 posts
    Member since:
    Aug 2006

    Posted 26 Aug 2010 Link to this post


    I tried several ways to change the border colors of both radGroupBox and ContentPanel of tabItem, but no luck.

    Actually I would like to put the hexadecimal color "#484042" which turns out to be light gray for the borders. The following is the code I wrote for ContentPanel's border. I dont know if that is the way to go.


    BorderPrimitive)(this.tabItem2.GetChildAt(1))).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(64)))), ((int)(((byte)(66))))); ---> Please guide if these colors make up "#484042" since the designer generated those ARGB values when I put in the above hex value.

    Also, I am having a weird problem with top border of the ContentPanel. The left, right and bottom border lines appear and are visible during run time, but for some reason I dont see the upper/top border for tabItem's ContentPanel.

    Kindly help


  2. Jack
    Jack avatar
    2333 posts

    Posted 01 Sep 2010 Link to this post

    Hello Gary,

    Thank you for contacting us.
    Regarding your questions:

    1. Please use the following code in order to customize RadGroupBox border:

    BorderPrimitive border= (BorderPrimitive)radGroupBox1.GroupBoxElement.Content.Children[1];
    border.Width = 5;
    border.BoxStyle = BorderBoxStyle.SingleBorder;
    border.GradientStyle = GradientStyles.Solid;
    border.ForeColor = Color.Red;

    This is not easy when using RadTabStrip. That is why we replaced this control with RadPageView in our latest release. I recommend that you try our latest release. Here is how you can change the content panel background in the new  version:
    this.radPageViewPage1.BackColor = Color.Red;

    Should you have any additional questions, please write back.


    All the best,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top