Setting skin used

3 posts, 1 answers
  1. Pete
    Pete avatar
    11 posts
    Member since:
    Feb 2011

    Posted 15 Feb 2014 Link to this post

    I keep the current skin used in an xml file. If the user wants to change the skin, I show the skin manager with the choose option.

    How do I set the RadSkinManager drop down box to the skin that is currently being used instead of it showing 'Default' - if I am using Outlook I want the list to show Outlook as the current selection.


  2. Answer
    Venelin avatar
    352 posts

    Posted 19 Feb 2014 Link to this post

    Hello Pete,

    You can use the .Skin property of RadSkinManager to dynamically set skin from server. One way to achieve this is to subscribe to the OnLoad event like follows:


    <telerik:RadSkinManager runat="server" ID="RadSkinManager1"  ShowChooser="true" OnLoad="RadSkinManager1_Load"></telerik:RadSkinManager>


    protected void RadSkinManager1_Load(object sender, EventArgs e)
        (sender as RadSkinManager).Skin = "Outlook"; //Here "Outlook" is hardcoded but you can replace it with a variable that you'll set based on your xml file

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
  4. Pete
    Pete avatar
    11 posts
    Member since:
    Feb 2011

    Posted 19 Feb 2014 in reply to Venelin Link to this post

    Perfect - Thanks
Back to Top