Adding RadSkinManager from code behind

2 posts, 0 answers
  1. Pirooz
    Pirooz avatar
    6 posts
    Member since:
    Nov 2007

    Posted 31 May 2012 Link to this post


    I have a PageBase class that inherits from System.Web.UI.Page. I also use web user controls extensively. The RadSkinManager skins all the RadControls consistently if the RadFormDecorator is commented out. But as soon as I uncomment the RadFormDecorator sections, all the RadControls on the page acquire the "Default" skin and all ASP controls acquire the desired skin. (i.e. "Forest"). The behavior I want is for all controls to be skinned consistently. How should I modify it so that it works correctly?

    Additional Information:
    Using Q3 2011
    I am also not allowed to use a master page but web user control solutions are ok.
    The PageBase class also contains a RadAjaxManager and ScriptManagerProxy if that is of any relevance??

    public abstract class PageBaseControl : Page
               public RadSkinManager DefaultSkinManager;
            //public RadFormDecorator DefaultFormDecorator;
            protected override void OnInit(EventArgs e)
                DefaultSkinManager = new RadSkinManager();
                DefaultSkinManager.ID = "DefaultSkinManager";
                //DefaultFormDecorator = new RadFormDecorator();
                //DefaultFormDecorator.ID = "DefaultFormDecorator";
                DefaultSkinManager.Skin = "Forest";
                    //DefaultFormDecorator.Skin = "Forest";
                DefaultSkinManager.ShowChooser = false;
                DefaultSkinManager.PersistenceKey = "Skin";
                DefaultSkinManager.PersistenceMode = RadSkinManagerPersistenceMode.Session;
                //DefaultFormDecorator.DecoratedControls = FormDecoratorDecoratedControls.All;
  2. Niko
    Niko avatar
    404 posts

    Posted 05 Jun 2012 Link to this post

    Hello Pirooz,

    Unfortunately I wasn't able to reproduce the issue that you are referring to. Please, find the attached web site to check the behavior on your side.
    Could you, please, try incorporating the necessary changes in this web site so that the issue can be reproduced so that I can test it on my side in details? In order to send the attachment you should open a support ticket.

    Hope this helps.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top