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

Rad Skin Value - Get From Cookie

1 Answer 47 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 24 Sep 2015, 01:41 PM
I have a master page that has a RadSkinManager on it. The user is able to select the desired skin from the chooser on the master page and it gets applied to all controls on all the pages that inherit from the master page. My issue is that I have some aspx pages that are being used as radwindows that do not use the master page. I need to be able to get the value of the skin in order to apply it to these pages. PersistenceMode on the radskin manager is 'Cookie', but I don't know what the name of the cookie is. Please advise on how to get this value from the skin manager.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 29 Sep 2015, 10:43 AM
Hi Jason,

The RadSkinManager will handle the storing and the retrieval of the Skin property in the cookie internally and you do not need to handle anything manually. The only thing that you have to do is to set the PersistanceMode property of both RadSkinManager (the one in your master page and the one in the page that will be loaded in the RadWindow to "Cookie"):

Master/Content page content:
<telerik:RadSkinManager runat="server" ID="RadSkinManager1" PersistenceMode="Cookie" ShowChooser="true" Skin="MetroTouch"></telerik:RadSkinManager>
 
<telerik:RadButton runat="server" ID="RadButton1"></telerik:RadButton> 
<telerik:RadWindow runat="server" ID="RadWindow1" NavigateUrl="Default3.aspx" OpenerElementID="RadButton1"></telerik:RadWindow>

And within the page displayed in the RadWindow you will have:
<telerik:RadSkinManager runat="server" PersistenceMode="Cookie"></telerik:RadSkinManager>
<telerik:RadButton runat="server" ID="RadButton1"></telerik:RadButton>

Hope this helps.


Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
SkinManager
Asked by
Jason
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or