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

[Solved] Apply skin to complex site

1 Answer 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
TonyG
Top achievements
Rank 1
TonyG asked on 12 May 2009, 12:02 AM
I have a masterpage with a single content page that dynamically loads usercontrols for content.
In the masterpage I have a combobox that allows selection of a skin.  That selection simply sets the appSettings Telerik.Skin value and things are ... almost OK.

At the end of the event cycle the form was only partially updated.  F5 fixed it.  So to force a refresh I just modified as follows:
protected void cmbSiteTheme_SelectedIndexChanged(  
   object o ,  
   Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e )  
{  
  ConfigurationManager.AppSettings.Set("Telerik.Skin" , e.Value);  
  Response.Redirect(this.Request.Url.ToString());  
I haven't seen that pattern. Is that the right way to do it?

I was going to use the RadPageStylist.Skin (that class is defined in the RadControlsAjaxCourseware and was provided by Vladimir Enchev) but it looks like this functionality is now built into the RadControls rendering process.

Is there some current documentation on exactly what's required in the current release?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 12 May 2009, 08:20 AM
Hello TonyG,

As far as I understood, you want to have a dropdown which changes the skins of all the RadControls. If so, I suggest to use our ne control called RadSkinManager control which can be configured to show a SkinChooser and to skin all teh controls. You can find more information about it below:

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

You can see a sample demo which uses many RadControls along with the RadSkinManager below:

http://demos.telerik.com/crmsample/Default.aspx

You should just change teh skin in ordre to see the result. 

In case this is not what you need, please provide a more detailed explanation about the exact scenario and the desired result. 

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
TonyG
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or