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

Programmatically set the skin

1 Answer 196 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 16 Oct 2010, 08:41 PM
Hello,

I have a design question.  I have several products for different customers the business functionality is different however the UI is very similar.  I have four separate login pages that I'm in the process of attaching a product type and that product type determines the skin I use.  I want to be able to use a single WEB.CONFIG like this:
<appSettings>
   <!-- Sets the skin for all RadControls to Hay -->
   <add key="Telerik.Skin" value="Hay"/>
    <add key="Telerik.Skin" value="Office2007" />
    <add key="Telerik.Skin" value="Outlook" />
    <add key="Telerik.Skin" value="Sunset" />
</appSettings>
Based on the product login page I pass a product type parameter to retrieve the correct appSettings value
for the entire product site.  Has anyone done this.  Basically it's using Polymorphism but I'd
like to know if someone has tackle this challenge with Telerik

Thank You 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Oct 2010, 05:49 PM
Hi Joe,

Using several Skin keys in the web.config will not help you.

I suggest you to use RadSkinManager with PersistenceMode set to Session or Cookie.

http://www.telerik.com/help/aspnet-ajax/radskinmanager.html

All the best,
Dimo
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or