Change skins for all controls dynamically in web application

4 posts, 0 answers
  1. Rajender
    Rajender avatar
    8 posts
    Member since:
    Apr 2013

    Posted 24 Jul 2014 Link to this post

    we need to change skin dynamically for all controls in web application. i have not found appropriate solution for web application. Kindly provide a solution which would be helpful for me.
  2. Galin
    Galin avatar
    526 posts

    Posted 29 Jul 2014 Link to this post

    Hi Rajender,

    In order to set he Skin globally there are two options

      <add key="Telerik.Skin" value="Metro"/>

    The other option is to use the RadSkinManager.

    I hope this helps.


    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. DevCraft R3 2016 release webinar banner
  4. David
    David avatar
    17 posts
    Member since:
    Feb 2015

    Posted 02 Mar 2015 in reply to Galin Link to this post

    I created this method in my Site.Master.cs code behind. In the Page_Load I check to make sure the Session["ID"] is not null before
    calling the SetPageTheme. This way I only have to set it in one place. Then whenever I call a web page the theme will get set in the master before running the page I am calling.

    private void SetPageTheme()
               int UserID = Convert.ToInt32(Session["ID"].ToString());
               // Use LINQ query to get User Record with Preferred Theme
               GATEEntities dbContext = new GATEEntities();
               var query = from srw in dbContext.Security_User
                           where srw.ID == UserID
                           select srw;
               var result = query.ToList();
               RadSkinManager1.Skin = result[0].Preferred_Theme;
               string skiname = RadSkinManager1.Skins[0].ToString();
  5. David
    David avatar
    17 posts
    Member since:
    Feb 2015

    Posted 02 Mar 2015 in reply to David Link to this post

    Ignore the last line of code in that method. 
    where it says:
    string skiname = RadSkinManager1.Skins[0].ToString();
Back to Top