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

Help with Editing Graph Skin Programatically

2 Answers 84 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eric
Top achievements
Rank 1
Eric asked on 28 Sep 2008, 03:14 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dwight
Telerik team
answered on 30 Sep 2008, 08:51 AM
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
0
Eric
Top achievements
Rank 1
answered on 30 Sep 2008, 09:49 PM
It works, thank you.
Tags
Chart (obsolete as of Q1 2013)
Asked by
Eric
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Eric
Top achievements
Rank 1
Share this question
or