PointMark settings not taken when SkinsOverrideStyles property is true

Thread is closed for posting
2 posts, 0 answers
  1. Randy
    Randy avatar
    73 posts
    Member since:
    Oct 2007

    Posted 07 Jul 2009 Link to this post

    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. 

  2. Ves
    Ves avatar
    2927 posts

    Posted 10 Jul 2009 Link to this post

    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.

    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