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

[Solved] jQuery.js file requirement is inhibitive.

3 Answers 86 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.
Stacey
Top achievements
Rank 1
Stacey asked on 12 Nov 2010, 06:10 PM
I am trying out the ASP.NET MVC controls - and while they seem fairly nice, I'm a little annoyed by some of the restrictions.

For one, it seems to demand that the jQuery.js library be located with the telerik.js files. While I understand the intention here, this is kind of inhibitive. Most of us already use jQuery, and include it via other means (usually google CDN) to make sure we have the newest versions, and that Visual Studio gives us intellisense, etc. 

Is there any way to override this so that it isn't forcing me to literally 'double-load' the jQuery Library?

3 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 12 Nov 2010, 06:19 PM
Hello Stacey,

 Yes, there is:

<%= Html.Telerik().ScriptRegistrar().jQuery(false) %>.

Still you need to include jquery and use a compatible version. Telerik Extensions are tested against a specific jquery version and may not work with older/newer versions.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Stacey
Top achievements
Rank 1
answered on 12 Nov 2010, 06:39 PM
I can understand this. It makes sense to a degree, but double loading a library of that size (and importance) is pretty restrictive. Perhaps there should be a "CheckJQuery()" method instead, to make sure it is a compatible version? 
0
Eti
Top achievements
Rank 2
answered on 13 Nov 2010, 10:02 AM
Hi Stacey,

Using .jQuery(false)  causes the AssetManager to non include jquery automatically.

You will need to include your specific jquery library from cdn or any location you wish.

There will be no duplication since the AssetManager will not include it again.

Hope it helps,
Iulian
Tags
General Discussions
Asked by
Stacey
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Stacey
Top achievements
Rank 1
Eti
Top achievements
Rank 2
Share this question
or