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

how to change Background of Radlabelelement in RadPanelBarGroupElement

2 Answers 163 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik
Top achievements
Rank 1
Erik asked on 05 Aug 2008, 09:53 AM
Hi telerik,

How to change the background and border color? I'm able to change throught Edit UI item. How do i change it in run time using coding?

Please look at below screenshot to indicate which background.

Screenshot:
http://img530.imageshack.us/img530/7223/screenshotvn6.png

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Boyko Markov
Telerik team
answered on 06 Aug 2008, 02:36 PM
Hi Erik,

There are two different ways depending on which background color you would like to change - the caption's of the element or the groupElement's?

To change group's caption element's first backColor use:

radPanelBarGroupElement1.GetCaptionElement().BackColor = Color.Black;

To change group element's backColor use:

 (radPanelBarGroupElement1.Children[0] as LightVisualElement).BackColor = Color.Red;

I hope this helps.

Greetings,
Boyko Markov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Erik
Top achievements
Rank 1
answered on 07 Aug 2008, 03:59 AM
Thanks for the answer. It really works.
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Erik
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Erik
Top achievements
Rank 1
Share this question
or