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

raddock Title background color

1 Answer 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam King
Top achievements
Rank 1
Adam King asked on 10 May 2013, 10:30 PM
I'm trying to set a radDock Title's background color in a user control dynamically in code-behind.
I can set the dock's background but Im not sure how to access just the title bar

The one thing I've found that works is some css I've placed on the control
<style type="text/css">     
.rdTitleBar
{
    background-color: pink;
}
</style>

however this changes all the radDocks on the page and is not dynamic.
so Is there a way to access in codebehind dock title background dynamically.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 May 2013, 06:29 AM
Hi,

I guess you want to access the RadDock TittleBar from code behind and give BackGround Color.

C#:
protected void Page_Load(object sender, EventArgs e)
   {
       RadDock1.TitlebarContainer.BackColor = System.Drawing.Color.Aqua;
   }

Thanks,
Princy.
Tags
Grid
Asked by
Adam King
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or