Help with Editing Graph Skin Programatically

3 posts, 1 answers
  1. Eric
    Eric avatar
    29 posts
    Member since:
    Jan 2008

    Posted 27 Sep 2008 Link to this post

    I am trying to change the skin of my graph programatically.  First, I use a radCarousel to select a skin.  The skin name is then passed on using the following code:

     

     
    radChart1.Skin = e.SkinName;  
    radChart1.Refresh(); 

    e.SkinName is a string of the skin name passed down from another form.

    The first time I change it, the graph background changes, but nothing happens to the plot area.  After that, nothing happens at all.  I have debugged and found no problems with passing the value through the event, as e.SkinName still returns a valid skin name, such as "Default".

    How can I implement this into my program?

    Thanks in advance.

  2. Answer
    Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 30 Sep 2008 Link to this post

    Hi Eric,$0$0$0To be able to change the skin multiple times, you need to set the RadChart.SkinsOverrideStyles property to true:$0$0$0$0$0this.radChart1.SkinsOverrideStyles = true$0$0$0$0$0$0$0$0Best regards,$0$0Author nickname$0the Telerik team$0$0Check out Telerik Trainer, the state of the art learning tool for Telerik products.$0$0
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Eric
    Eric avatar
    29 posts
    Member since:
    Jan 2008

    Posted 30 Sep 2008 Link to this post

    It works, thank you.
Back to Top