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

[Solved] @Html.Telerik().ScriptRegistrar().jQuery(false)

7 Answers 248 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.
Bogdan
Top achievements
Rank 1
Bogdan asked on 07 May 2012, 09:57 AM
Hello to all,

Everything is Ok when im working on my local machine, but after publishing i have this error


Specified file does not exist: "~/Scripts/telerik.common.js".


 on this line
@Html.Telerik().ScriptRegistrar().jQuery(false)

I need fast solution.

Thanks a lot

7 Answers, 1 is accepted

Sort by
0
Bogdan
Top achievements
Rank 1
answered on 09 May 2012, 10:34 AM
Anybody???
0
Stephen Altemus
Top achievements
Rank 1
answered on 10 May 2012, 08:21 AM
Im getting the exact same problem.... Frustrating
0
Bogdan
Top achievements
Rank 1
answered on 14 May 2012, 02:31 PM
This is annoying.

Telerik would you like to help us or what?!
0
Marko
Top achievements
Rank 1
answered on 15 May 2012, 10:05 AM
Hi Bogdan,

I am not from telerik but ... you just need to add this file to your page at the top of all scripts.

<%=Html.Script("~/Scripts/telerik.common.min.js")%>  --
or 
<script type="text/javascript" src="/Scripts/telerik.common.min.js"></script>

Regards,
0
Bogdan
Top achievements
Rank 1
answered on 15 May 2012, 10:29 AM
Hello Marko, 

Thank you for you suggestion. But i don't have telerik.common.min.js in the solution, i downloaded from Nuget.
Can you tell me where can i find it, i think that the script is loaded dynamically with controls from telerik.

Regards

0
Accepted
Marko
Top achievements
Rank 1
answered on 15 May 2012, 06:02 PM
Go to download section and download recent Telerik controls and add to project all necessaries scripts.
Let me give you lazy link :)

http://www.telerik.com/products/aspnet-mvc/download-open-source.aspx 

be aware this is open source version meaning if you are using this commercially it has its own rules.

You can check other versions here:
http://www.telerik.com/products/aspnet-mvc/download.aspx 

0
Bogdan
Top achievements
Rank 1
answered on 18 May 2012, 12:40 PM
Thanks a lot Marko, 

you are the man :) (party) 
Tags
Grid
Asked by
Bogdan
Top achievements
Rank 1
Answers by
Bogdan
Top achievements
Rank 1
Stephen Altemus
Top achievements
Rank 1
Marko
Top achievements
Rank 1
Share this question
or