简体   繁体   English

Kendo无法使用jQuery 2.0?

[英]Kendo not working with jQuery 2.0?

It seems that Kendo UI web does not work with jQuery 2.0.0. Kendo UI Web似乎不适用于jQuery 2.0.0。 I saw a problem in my app after updating. 更新后,我的应用程序出现了问题。 The grid defaults to even width columns, the width value is no longer used. 网格默认为偶数宽度列,不再使用宽度值。

To confirm that it was not something in my app, I took the default index.html file from the examples (or Kendo UI Grid Sample ) and updated the reference jQuery.min.js to jQuery-2.0.0-min.js and the same problem exists. 为了确认它不是我的应用程序中的内容,我从示例(或Kendo UI Grid Sample )中获取了默认的index.html文件,并将引用jQuery.min.js更新为jQuery-2.0.0-min.js,存在相同的问题。

I guess I am stuck with jQuery 1.9 for now, just wondering if anyone else is seeing this and if there is a fix or workaround I can apply. 我想我暂时还停留在jQuery 1.9上,只是想知道是否有人在看这个,是否有我可以应用的修复程序或解决方法。

Thanks. 谢谢。

Do you happen to be using internet explorer ? 您碰巧正在使用Internet Explorer吗? Jquery 2.0 is the same as 1.9 the only difference is that they dont provide implementations for IE (at least for 8 and below, check out this link . jQuery 2.0与1.9相同,唯一的区别是它们不提供IE的实现(至少在8以下),请查看此链接

您需要使用Kendo UI的最新版本来获得jQuery 2.0支持。

I know this is an older question, but it doesn't look like anyone has pointed out the link to Kendo's answer: http://docs.kendoui.com/getting-started/javascript-dependencies 我知道这是一个较旧的问题,但似乎没有人指出指向Kendo的答案的链接: http : //docs.kendoui.c​​om/getting-started/javascript-dependencies

The current official version of Kendo UI requires jQuery 1.9.1. There are occasions in which a new jQuery version is released, which introduces breaking changes and is not compatible with existing Kendo UI versions. In such cases we recommend using the previous jQuery version until the next official Kendo UI release that resolves the problems. We normally do not change the jQuery version that is shipped with Kendo UI for service packs. We can do this for major releases. The following list provides compatibility information about previous major Kendo UI releases:
Kendo UI 2013.3.1119 (Q3 2013) - jQuery 1.9.1 (works also with 1.10.x and 2.0.x)
Kendo UI 2013.2.716 (Q2 2013) - jQuery 1.9.1
Kendo UI 2013.1.319 (Q1 2013) - jQuery 1.9.1
Kendo UI 2012.3.1114 (Q3 2012) - jQuery 1.8.2
Kendo UI 2012.2.710 (Q2 2012) - jQuery 1.7.1
Kendo UI 2012.1.322 (Q1 2012) - jQuery 1.7.1
Kendo UI 2011.3.1129 (Q3 2011) - jQuery 1.7.1
There should be no problem to use another minor jQuery version instead of the specified above, e.g. 1.7.2 instead of 1.7.1.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM