Problems with skinning a RadChart

Thread is closed for posting
2 posts, 0 answers
  1. Per Granaune
    Per Granaune avatar
    11 posts
    Member since:
    Feb 2010

    Posted 21 Sep 2010 Link to this post

    Hi,

    I'm using RadControls for ASP.NET AJAX Q1 2010 with C# (Visual Studio 2008, EPi-Server)
    and have some problems with skinning.

    I've copied skins from their installed folder of C:\...\RadControls for ASP.NET AJAX Q1 2010\Skins\...
    and given them new names in my C# solution - Grid.ProductShortList.css, etc. I've added the accompanying
    folders on the same level as the CSS-files, and of course altered the names of the classes, etc. inside the CSS-files.

    The CSS-files are referenced either by a masterpage, or in some cases by the page itself.

    Since the RadChart only has a "common" CSS, I've used this, and renamed the copy Chart.KraftinorEpi.css.

    The problem is that some of the charts that use this skin works, but others don't.
    The ones that don't work get a dark gray background (#525252) - sort of a negative/inverted look.

    The attached image shows two radcharts (black bars are just censored information),
    both existing in the same .ascx file. Both are set to Skin="KraftinorEpi" EnableEmbeddedSkins="false".
    The lower chart has the correct look, but the upper chart displays the weird "inverse" look.

    Any ideas what the reason for this can be?
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 24 Sep 2010 Link to this post

    Hi Per Granaune,

    RadChart is a bit different from other controls when it comes to skinning. As it is just an image, generated on the server, there is no CSS applied. A RadChart skin is rather a set of predefined appearance properties, applied to the chart before the image is generated.

    You can find an example of skinning RadChart here. You can also check this help topic, dedicated on saving/loading chart skins.

    Hope this helps.

    Greetings,
    Evgenia
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top