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

Where is the StyleSheetRegistrar created and how can I access it in Global.asax?

3 Answers 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John McDowall
Top achievements
Rank 1
John McDowall asked on 25 Sep 2009, 10:02 AM
I want to be able to programmatically register style sheets at runtime in the global.asax which I pull from plugins at runtime.

Can I access the StyleSheetRegistrar and add them in code so that they render appropriately?

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Sep 2009, 11:20 AM
Hi John McDowall,

The StyleSheetRegistrar is created when the view is being rendered. Perhaps you could store the stylesheets in HttpContext.Current.Items (in global.asax) and then register them in your view.

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John McDowall
Top achievements
Rank 1
answered on 25 Sep 2009, 01:06 PM
Hi Atanas,

Thanks for getting back to me - we are taking that approach for now, but its good to confirm there isn't some secret sauce approach I've missed ;)


J
0
Amit
Top achievements
Rank 1
answered on 09 Nov 2009, 08:54 AM
Hi,

I did a blog post on the shared web asset which I think should clarify the issue:
http://weblogs.asp.net/rashid/archive/2009/11/09/web-asset-enhancements-in-telerik-extensions-for-asp-net-mvc.aspx

Thanks
Kazi Manzur Rashid    
Tags
General Discussions
Asked by
John McDowall
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
John McDowall
Top achievements
Rank 1
Amit
Top achievements
Rank 1
Share this question
or