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

Is it possible to get all Theme names from SkinManager?

1 Answer 144 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 02 Mar 2015, 07:58 PM
Is there a way in code behind to pull all possible Theme names from the Skin Manager into a string array?
I was thinking it might be stored in RadSkinManager.Skins but I didnt find it there. If it is possible please
show code example.

Thanks,

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 05 Mar 2015, 12:08 PM
Hello,

You can access all available skins in the "SkinChooser" RadComboBox that is part of the RadSkinManager control. You can access the RadComboBox items (skin names) as shown below:
//code
RadComboBox skinChooser = RadSkinManager1.FindControl("SkinChooser") as RadComboBox;
   skinChooser.SelectedValue = "Black";
   foreach (RadComboBoxItem item in skinChooser.Items)
   {
      ....
   }
 

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
SkinManager
Asked by
David
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or