Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SkinManager > How to change themes on click of button

Not answered How to change themes on click of button

Feed from this thread
  • eraashishgupta eraashishgupta's avatar

    Posted on Jul 5, 2010 (permalink)

    Hi all,

    When i use the default drop down to change the Skin using the Rad Skin Manager then everything works fine.
    But in my current application i want to change theme on the click of my theme buttons say Blue, Red , Green etc
    So how can i do that using Rad Skin Manager.

    Thanks,
    Aashish Gupta

    Reply

  • Dimo Dimo admin's avatar

    Posted on Jul 5, 2010 (permalink)

    Hi Aashish Gupta,

    You can easily set the RadSkinManager's Skin property programmatically in the buttons' server-side Click handler. The RadSkinManager itself should not have its ShowChooser property set to "true", otherwise its dropdown will appear on the page.

    Best wishes,
    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

    Reply

  • Mukesh avatar

    Posted on May 23, 2011 (permalink)

    Hi Dimo,

    I am using RadSkinManager on Master Page, and want to change skin from content page's button click.
    On content page's button click, I am applying skin as below:

    protected void Button1_Click(object sender, EventArgs e)
    {
        ((RadSkinManager)this.Master.FindControl("RadSkinManager1")).Skin = "Forest";
    }

    But it is not working.... please suggest some solutions.



    Thanks
    Mukesh

    Reply

  • Maria Ilieva Maria Ilieva admin's avatar

    Posted on May 26, 2011 (permalink)

    Hello Mukesh,

    RadSkinManager should always reside on the main page or master page in order to operate properly and style RadControls. If you would like to apply skins for controls which reside in content pages or user controls, you can do that dynamically using the ApplySkin(control, skinName) method from its server-side API.

    See the relevant paragraph (the part under the ASPX section) of this help article for more details.


    All the best,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SkinManager > How to change themes on click of button