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

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

1 Answer 806 Views
Panel
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 26 Aug 2010, 07:27 PM
Hi,

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.

((Telerik.WinControls.Primitives.

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

Thanks,
Jayanthi
tjayanthi@dsionline.biz

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 01 Sep 2010, 08:22 AM
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;

2.
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,
Jack
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
Tags
Panel
Asked by
Gary
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or