Can you please post some sample code as to how I could change the theme for a chart in code behind? I just want to switch from the balck theme to either Vista or Simple.
For the life of me I can't find the method or property to set.
Thanks!!
--Tad Richard
1 Answer, 1 is accepted
0
Ves
Telerik team
answered on 21 May 2009, 05:53 AM
Hi Tad,
You can set it just as any other attached property: RadChart1.SetValue(StyleManager.ThemeProperty, new VistaTheme());
You can also use the StyleManager.SetTheme() method: StyleManager.SetTheme(RadChart1, new VistaTheme());
Note, that the Simple theme is not available for RadChart yet. We plan to deliver it with Q2 release, expected in July.