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

PointMark settings not taken when SkinsOverrideStyles property is true

1 Answer 54 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 07 Jul 2009, 06:03 PM
I have a RadChart on a user control and I'm trying to determine how best to use the built in skins and set properties overtop of this.  I am basically giving the user an option to pick from available skins and apply to a chart.  This works fine as long as I set the SkinsOverrideStyles to True.  The problem I ran into is that certain properties don't stick when I set them on the chart instance. For example, I am trying to set the PointMark to show on a Line Chart.  When SkinsOverrideStyles is false, it works but not all of my Skin settings are shown.  When I set SkinsOverrideStyles to true, the chart gets settings from skin but other props (ie PointMark) are ignored.  I realize this is because it is getting the styles from the skin (when true) or the page (when false). 

What should I be doing here? How can I get the best of both worlds?  Apply the skin and then let me set the other props as needed. 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 10 Jul 2009, 11:38 AM
Hi Randy,

The correct approach in this case would be to use SkinsOverrideStyles=false, so that you can apply your own settings. However, you have correctly noticed, that some elements are not styled correctly with the new skin. Still, using SkinsOverrideStyles = true should not be expected to allow custom style settings. The fix here would be to set SkinsOverrideStyles to true just before changing the skin, so that all the settings of the new skin are applied. Then set it back to false and re-apply your custom settings.

I hope the above approach is applicable. Finally, I have updated your Telerik points for reporting this issue.

Regards,
Ves
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
Chart (Obsolete)
Asked by
Randy
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or