No background colour when changing skin

4 posts, 0 answers
  1. Andrew M
    Andrew M avatar
    13 posts
    Member since:
    Dec 2008

    Posted 16 May 2009 Link to this post

    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

     

     

  2. Yana
    Admin
    Yana avatar
    4789 posts

    Posted 18 May 2009 Link to this post

    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.
  3. Andrew M
    Andrew M avatar
    13 posts
    Member since:
    Dec 2008

    Posted 18 May 2009 Link to this post

    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
  4. Yana
    Admin
    Yana avatar
    4789 posts

    Posted 19 May 2009 Link to this post

    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.
Back to Top