Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
520 views
in Technique[技术] by (71.8m points)

kendo ui - Issues with KendoUI and jQuery 1.9.0

Running into an issue with KendoUi and the latest version of jQuery ... I have simple ASP.NET MVC project with a single view that renders as follows:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <link href="/Content/site.css" rel="stylesheet"/>
    <script src="/Scripts/modernizr-2.5.3.js"></script>
</head>
<body>   
<h2>Index</h2>
    <script src="/Scripts/jquery-1.9.0.js"></script>
    <script src="http://cdn.kendostatic.com/2012.3.1114/js/kendo.all.min.js" type="text/javascript"></script> 
</body>
</html>

When I view the page, I am receiving the following error in my javascript console:

Uncaught TypeError: Object function ( selector, context ) {
        // The jQuery object is actually just the init constructor 'enhanced'
        return new jQuery.fn.init( selector, context, rootjQuery );
    } has no method 'sub' 

kendo.all.min.js:10

Anyone else running into this issue? And what am I doing incorrect?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

What jrummell said - we don't officially support jQuery 1.9.0 yet, as it was released on the same day as our service pack. jQuery 1.9.0 has a number of breaking changes since 1.8.x and if you need it to be API compatible with 1.8, please also include the jQuery Migrate plugin.

Update: Kendo UI Q1 2013 supports and ships with jQuery 1.9.1.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...