Dynamic themeing of controls

3 posts, 0 answers
  1. yeswanth pavan
    yeswanth pavan avatar
    9 posts
    Member since:
    Jan 2010

    Posted 08 Feb 2010 Link to this post

    Hi all,

    Can I have a dropdown having all the skins i.e, vista,Outlook,Telerik,Forest...  when I will select any one of the skin from the dropdown then all the controls of that page should be changed to the selected skin as you applied in the Demos for Telerik controls.Is it possible if so how any help would be helpful.
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 08 Feb 2010 Link to this post

    I believe what you're looking for is the RadSkinManager control. You would have to create the dropdown and the logic of when to change the Skins yourself but this control lets you define a list of controls you want to skin and from there you can easily change the skin of this list of controls.
  3. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 12 Feb 2010 Link to this post

    Schlurk is right. Although I disagree with him, you don't need to create the drop-down or the logic. You just need to set ShowChooser="true", which renders the drop-down control and then set the PersistenceMode and PersistenceKey to suit your situation and I believe that's all you need to do. The RadSkinManager should take of the rest by setting all the RadControls on the page to the selected skin.
Back to Top