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

[Solved] Using grid in Orchard CMS

6 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Giscard
Top achievements
Rank 1
Giscard asked on 02 Mar 2012, 11:02 PM
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? 

6 Answers, 1 is accepted

Sort by
0
Giscard
Top achievements
Rank 1
answered on 05 Mar 2012, 02:26 AM
Hi, any guidance on this? 
0
Atanas Korchev
Telerik team
answered on 05 Mar 2012, 09:25 AM
Hello,

 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/ 
0
Atanas Korchev
Telerik team
answered on 05 Mar 2012, 02:39 PM
Hello,

 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
Atanas Korchev
Telerik team
answered on 06 Mar 2012, 08:43 AM
Hi,

 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.
Tags
Grid
Asked by
Giscard
Top achievements
Rank 1
Answers by
Giscard
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or