Rad Skin Value - Get From Cookie

2 posts, 0 answers
  1. Jason
    Jason avatar
    1 posts
    Member since:
    Aug 2015

    Posted 24 Sep 2015 Link to this post

    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.
  2. Konstantin Dikov
    Konstantin Dikov avatar
    2212 posts

    Posted 29 Sep 2015 Link to this post

    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.

    Konstantin Dikov
    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
Back to Top