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

Problems with skinning a RadChart

1 Answer 45 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Per Granaune
Top achievements
Rank 1
Per Granaune asked on 21 Sep 2010, 09:30 AM
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?

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 24 Sep 2010, 08:04 AM
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
Tags
Chart (Obsolete)
Asked by
Per Granaune
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or