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

Setting skin used

2 Answers 71 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 15 Feb 2014, 01:42 PM
Hi,
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.

Thanks

Pete

2 Answers, 1 is accepted

Sort by
0
Accepted
Venelin
Telerik team
answered on 19 Feb 2014, 01:47 PM
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:

ASPX:

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

C#:

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
}


Regards,
Venelin
Telerik
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.
0
Pete
Top achievements
Rank 1
answered on 19 Feb 2014, 01:53 PM
Perfect - Thanks
Tags
SkinManager
Asked by
Pete
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Pete
Top achievements
Rank 1
Share this question
or