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

[Solved] skin not applied for RadControls in IE

5 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sivakumar
Top achievements
Rank 1
Sivakumar asked on 09 May 2013, 02:31 PM
Telerik Embedded skins are not apply for radcontrols in IE. For that Some expert told to add a Radstylesheetmanager to combine stylesheet request into single one.

if i add radstylesheetmanager like this

 string telerikAssembly= typeof(RadGrid).Assembly.FullName;
                    RadStyleSheetManager stylesheet = new RadStyleSheetManager();
                    
                    StyleSheetReference css1 = new StyleSheetReference();
                    css1.Assembly = telerikAssembly;
                    css1.Name = "Telerik.Web.UI.Skins.Telerik.Grid.Telerik.css";
                    stylesheet.StyleSheets.Add(css1);

                    StyleSheetReference css2 = new StyleSheetReference();
                    css2.Assembly = telerikAssembly;
                    css2.Name = "Telerik.Web.UI.Skins.Office2007.Grid.Office2007.css";
                    stylesheet.StyleSheets.Add(css2);
                    
                    StyleSheetReference css3 = new StyleSheetReference();
                    css3.Assembly = telerikAssembly;
                    css3.Name = "Telerik.Web.UI.Skins.Black.Grid.Black.css";
                    stylesheet.StyleSheets.Add(css3);
                    this.Page.Header.Controls.Add(stylesheet);



it doesn't work.
how can i solve this issue please help me to solve this issue.



5 Answers, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 14 May 2013, 04:58 PM
Hi Sivakumar,

There is no really need to do all this for the embedded skins, because RadStyleSheetManager combines them automatically. However, if you want to include your own custom CSS files you can read this help topic

I hope this helps.

Greetings,
Venelin
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.
0
Sivakumar
Top achievements
Rank 1
answered on 15 May 2013, 05:47 AM
Hi  Venelin,

If i add a just  Radstylesheetmanager  into the page without adding any style reference thats also doesn't work.

My code is:
  RadStyleSheetManager stylesheet = new RadStyleSheetManager();
  this.Page.Controls.Add(stylesheet);

is it a correct way to add a radstylesheetmanager into the page?

Please help me to solve this issue
0
Venelin
Telerik team
answered on 16 May 2013, 11:29 AM
Hello Sivakumar,

The code is correct but note that you should put it in Page_PreInit.

protected void Page_PreInit(object sender, EventArgs e)
{
    RadStyleSheetManager stylesheet = new RadStyleSheetManager();
    this.Page.Controls.Add(stylesheet);
}

For more information about this topic please refer to this link.

I hope this helps.

Greetings,
Venelin
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.
0
Sivakumar
Top achievements
Rank 1
answered on 20 May 2013, 06:42 AM
Hi Venelin,
                        Thanks for your reply.I have tried page_preInit method in my custom webpart,but the event is not firing.Please help me to resolve this issue
0
Venelin
Telerik team
answered on 20 May 2013, 12:06 PM
Hello Sivakumar,

The issue you are facing is not replicable on our side. Please provide a runnable sample project that is isolating the issue so we can test and debug.

Regards,
Venelin
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
Grid
Asked by
Sivakumar
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Sivakumar
Top achievements
Rank 1
Share this question
or