How to synchronize the RadChart skin with a website skin?

Thread is closed for posting
3 posts, 0 answers
  1. Miroslav
    Miroslav avatar
    4 posts
    Member since:
    Apr 2011

    Posted 27 Jun 2011 Link to this post

    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. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 30 Jun 2011 Link to this post

    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.

  3. Miroslav
    Miroslav avatar
    4 posts
    Member since:
    Apr 2011

    Posted 30 Jun 2011 Link to this post

    Hi Ves,

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

    Kind regards,
    Miro
Back to Top