Is it possible to get all Theme names from SkinManager?

2 posts, 0 answers
  1. David
    David avatar
    17 posts
    Member since:
    Feb 2015

    Posted 02 Mar 2015 Link to this post

    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,
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 05 Mar 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top