This is a migrated thread and some comments may be shown as answers.

JQuery 3.3.1 and KendoGrid not working with RequireJS

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 20 Feb 2019, 07:10 AM

I have been trying to upgrade Jquery to 3.3.1 for my project in RequireJS but it's giving error kendogrid is not a function.

So I used latest Kendo.all.min but still the issue is not resolved.

Please find attached sample code file link below

http://dojo.telerik.com/@roger.telegan/aXOHeTiK

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 20 Feb 2019, 03:09 PM
Hello Roger,

I just replied the support ticket that you have about this problem. I will copy the solution from there in case anyone else encounters a similar problem.

You need to use the full name of the Kendo UI bundle when loading it with RequireJS:
require.config({
  paths: {
    "jquery": "https://code.jquery.com/jquery-1.9.1.min",        
  }
});
  
require([ "jquery", "kendo.all.min" ], function($, JSZip, kendo) {
   
  $("#grid").kendoGrid({
    toolbar:["excel"],
    dataSource: {
      data: [{name:"Jane Doe"}, {name:"John Doe"}]
    }
  });
});

This is shown in the example in this article: Use Bundle Scripts with RequireJS.

I modified the Dojo to declare the full name and the Grid loads as expected:
http://dojo.telerik.com/EGAQOPut

If you have additional questions, you can post them in the support ticket, so we keep our communication in one channel and avoid duplicate posts.

Regards,
Tsvetina
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Roger
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or