Telerik and jquery

自古美人都是妖i 提交于 2019-12-03 06:03:53

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!