This question is locked. New answers and comments are not allowed.
I'm trying to use Telerik MVC controls in an Orchard module. I followed the instructions in another post here, but for my case it doesn't work because Layout.cshtml exists in an Orchard theme, and Orchard Themes aren't active in the Orchard Dashboard, where I want to use the Telerik controls.
Does anyone know why ScriptRegistrar() doesn't work in views in Orchard? Is there a way to fix this?
Does anyone know why ScriptRegistrar() doesn't work in views in Orchard? Is there a way to fix this?
6 Answers, 1 is accepted
0
Giscard
Top achievements
Rank 1
answered on 05 Mar 2012, 02:26 AM
Hi, any guidance on this?
0
Hello,
Atanas Korchev
the Telerik team
We are not familiar with the implementation of Orchard and we are not sure why the ScriptRegistrar is not working. By the way what is not working? Could you elaborate?
All the best,Atanas Korchev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Giscard
Top achievements
Rank 1
answered on 05 Mar 2012, 02:31 PM
ScriptRegistrar() doesn't output any script tags in the final HTML, when used from an Orchard module. There is another thread on the telerik forums saying the solution is to make the ScriptRegistrar calls from the Layout.cshtml of the Orchard theme, but that won't work in my case because i need the functionality in the Orchard dashboard, and the only way to make that happen is to call the scripts i want from a module, not a theme.
Here is the page for Orchard, an open source CMS:
http://orchard.codeplex.com/
Here is the page for Orchard, an open source CMS:
http://orchard.codeplex.com/
0
Hello,
Atanas Korchev
the Telerik team
The ScriptRegistrar should be put after any Telerik MVC component in order to output anything.
Regards,Atanas Korchev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Giscard
Top achievements
Rank 1
answered on 05 Mar 2012, 02:50 PM
I tried that.
0
Hi,
Atanas Korchev
the Telerik team
Can you paste the code that you tried? It may not be related to Orchard at all.
Regards,Atanas Korchev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.