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

Adding RadSkinManager from code behind

1 Answer 66 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Pirooz
Top achievements
Rank 1
Pirooz asked on 01 Jun 2012, 02:00 AM

Hi,

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)
        {
            base.OnInit(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;
 
               Form.Controls.Add(DefaultSkinManager);
            //Form.Controls.Add(DefaultFormDecorator);
        }
}

1 Answer, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 05 Jun 2012, 02:58 PM
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.

Greetings,
Niko
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.
Tags
SkinManager
Asked by
Pirooz
Top achievements
Rank 1
Answers by
Niko
Telerik team
Share this question
or