I'm working on an application I received from a client and they've used some telerik web controls. Telerik apparently includes its own version of jquery 1.3.2, while I'm using 1.4.1. I'm experiencing some weird javascript issues and I'd like to rule out the older jquery as a source of the problem. Is there a way to tell the Telerik controls not to automatically include the 1.3.2 version of jquery if I've already got jquery on the page elsewhere?
Try jQuery.noConflict(). Using jQuery with Other Libraries
I'm not sure whether the approach shown by andreas will help you. As you can read in this article (or here), telerik already does something similar "to avoid compatibility issues with applications which already use (other versions of) jQuery".
I did it by telling Telerik not to register his version of jQuery at all It can be done once for the site in _Layout.cshtml file
in head section I am loading needed versions of jQuery scripts manually
<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
then before
@(Html.Telerik().ScriptRegistrar().DefaultGroup(
group => group.Compress(false).Combined(false))
.jQuery(false)
.jQueryValidation(false))
I think the latest version of Telerik controls use jQuery 1.4.1 now.
来源:https://stackoverflow.com/questions/2314706/telerik-and-jquery