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

No background colour when changing skin

3 Answers 89 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Andrew M
Top achievements
Rank 1
Andrew M asked on 16 May 2009, 09:45 PM
I'm using RadSkinManager in the format below to allow the user to change the site skin.

<

telerik:RadSkinManager ID="RadSkinManager1" runat="server" PersistenceMode="Cookie" PersistenceKey="myOnlineSkin"></telerik:RadSkinManager>

I can change the skin on all controls apart from the background colour of the RadTreeView control. The 'Black' skin stands out since the background should be back but i get my website background colour. I'm using release Q1 2009.

I'd be grateful for your comments.

Kind regards
Andrew

 

 

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 May 2009, 09:29 AM
Hello Andrew,

Actually Black skin doesn't set background color of the treeview, that's why it's not set with the skin chooser.

Best regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Andrew M
Top achievements
Rank 1
answered on 18 May 2009, 10:12 AM
If the 'Black' skin doesn't set the background colour of the RadTreeView, then I'm assuming that in this example
http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/xmlfile/defaultcs.aspx
when you pick Black from the drop down menu, you are setting the page background manually?

If so, where and how is the best way of setting the background colour for the RadTreeView control?

Thanks
Andrew
0
Yana
Telerik team
answered on 19 May 2009, 12:57 PM
Hi Andrew,

I suggest you subscribe to OnSkinChanged event of the skin manager and set the BackColor of the treeview to "Black" if the selected skin is Black. Please find attached a simple page demonstrating this approach.

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Andrew M
Top achievements
Rank 1
Answers by
Yana
Telerik team
Andrew M
Top achievements
Rank 1
Share this question
or