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

Javascript error occured when trying to add RadStyleSheetmanager

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sivakumar
Top achievements
Rank 1
Sivakumar asked on 01 May 2013, 09:40 PM


Hi,
          The Css styles are not apply for Radcontrols in IE.if i put 2 grid controls the Css styles are applied perfectly.but if i add more than two grid, css styles are not  apply for other grids except first two grid.


To solve this i have searched in a  lots of forum. 

some experts told to add a stylesheetmanager to Combine  the stylesheet requests into a single request.
because of IE have some limitation to add more than 31 cssfile.

After adding the stylesheetmanager  i am getting the javascript error like in the attachment file and also a  css problem is still not solved

Please help me to solve this issue.

Thanks.


1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 06 May 2013, 08:04 AM
Hi Sivakumar,

Do you face this issue with any other browser than IE? Please note that the observed behavior resemble the 31 CSS resources limitation in IE:
http://blogs.telerik.com/blogs/posts/10-05-03/internet-explorer-css-limits.aspx.

To resolve it, you can try to use RadStyleSheetManager as demonstrated in the following thread:
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/custom-skin-asp-net-theme-ie-31-style-sheet-limit.aspx

Additionally, please note that in case you have placed the CSS files in the App_Themes folder, the theme's CSS files are registered automatically on the page during runtime, and this behavior cannot be modified by RadStyleSheetManager. Therefore, you will need to move out the CSS files and register them in the RadStyleSheetManager.

Also, a better option maybe to build a custom Skin assembly. Please refer to this pages for more info:
http://www.telerik.com/help/aspnet-ajax/introduction-skins-external-assembly.html
http://www.telerik.com/community/code-library/aspnet-ajax/general/how-to-load-skins-from-external-assemblies.aspx

You can also try out the following tool, which is provided from our customer
http://www.acdevsoftware.ch/Download/Default.aspx?lang=en#TOOLS

Hope this helps.

Greetings,
Eyup
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
Eyup
Telerik team
Share this question
or