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

How to synchronize the RadChart skin with a website skin?

2 Answers 43 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Miroslav
Top achievements
Rank 1
Miroslav asked on 27 Jun 2011, 09:13 AM

Dear telerik team,
 
I would like to ask you for a way in order to accomplish a change of the RadChart skin immediately when the skin of the master page have changed. (Naturally, in case that a RadChart skin collection does contain the same skin type as selected website skin).

Here is my current scenario for better clarify:
1. I have a master page which contains RadFormDecorator. (Note, that 'DecoratedControls' attribute is set to "all").
2. My master page contains also a RadSkinManager. (Its 'ShowChooser' attribute is set to "true").
3. Website built on the master page contains RadChart contained in update panel.
- So, the problem resides in a fact, that the change of website skin does not affect the RadChart skin, whenever is changed. I tried to utilize the SkinChanged event upon RadSkinManager instance, but the RadChart skin was changed not synchronously with website skin, but after next website skin change (so I have a delay for next website skin change which causes the mentioned skin divergence).

Can you help me, please? Thank you very much.

Kind regards,
Miro

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 30 Jun 2011, 08:39 AM
Hi Miro,

RadChart is just an image, rendered on the server and its skins are actually pre-defined appearance settings. This is why RadSkinManager will not handle RadChart correctly. I have attached a simple example, which works correctly. Note, that you will need to call RadChart.ClearSkin() before setting the new one.

Best regards,
Ves
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Miroslav
Top achievements
Rank 1
answered on 30 Jun 2011, 12:27 PM
Hi Ves,

thank you very much for your support and quick response. Your example is the exactly what I've needed.

Kind regards,
Miro
Tags
Chart (Obsolete)
Asked by
Miroslav
Top achievements
Rank 1
Answers by
Ves
Telerik team
Miroslav
Top achievements
Rank 1
Share this question
or