6

Why kendo load before Jquery in angular routing template with Kendo grid.

I have ordered the scripts, while clicking any event through angular routing templates getting this error in console.

Note: In page refresh, scripts loaded properly, the application works fine, not getting any error.

Only occurred in event routing. kendo load before jquery why.

order scripts :

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    <script src="https://code.angularjs.org/1.3.8/angular.js"></script>
    <script src="//kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script>
    <script src="https://code.angularjs.org/1.3.8/angular-sanitize.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.3.1/angular-ui-router.js"></script>

2 Answers 2

2

I had the same issue: I was loading jQuery twice.

Sign up to request clarification or add additional context in comments.

Comments

1

Had the same issue. Resolved it by using the jQuery and angular that comes bundled with kendo

3 Comments

How exactly did you do that? I am having the same issue.
If you bought kendo UI professional, you'll have jquery and angular bundled inside kendo/xxxx.x.xxx/jquery.min.js and kendo/xxxx.x.xxx/angular.min.js. For example, our build was kendo/2017.1.223/
My best guess as to why that occurs is perhaps because the kendo wrapper refers to the internal version of angular and jquery and on routing the global jquery object is overwritten with kendo's reference which does not exist because we haven't included it in our index file and later resolves to the version of jquery we did include in our index file, which leads to the error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.