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

Cannot create a Grid instance

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nikolay
Top achievements
Rank 2
Nikolay asked on 29 Mar 2019, 01:56 PM

Hi there

I'm trying to include the Kendo Grid basic usage example into my ASP.NET MVC + Bootstrap project.

The problem is that it throws the exception in line

$(document).ready(function () { $("#employeeGridDiv").kendoGrid({...

 

"kendoGrid is undefined/kendoGrid not a function"

 

Here is the way I include the Telerik stuff:

<link rel="stylesheet" href="~/AdminLTE/plugins/kendo/css/kendo.common.min.css">
<link rel="stylesheet" href="~/AdminLTE/plugins/kendo/css/kendo.rtl.min.css">
<link rel="stylesheet" href="~/AdminLTE/plugins/kendo/css/kendo.default.min.css">
<link rel="stylesheet" href="~/AdminLTE/plugins/kendo/css/kendo.default.mobile.min.css">
<script src="~/AdminLTE/plugins/kendo/js/jquery.min.js"></script>
<script src="~/AdminLTE/plugins/kendo/js/jszip.min.js"></script>
<script src="~/AdminLTE/plugins/kendo/js/kendo.all.min.js"></script>
<script src="~/AdminLTE/plugins/kendo/js/console.js"></script>

How to make it work?

Thanks.

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 02 Apr 2019, 07:39 AM
Hello Nikolay,

If the Kendo scripts are loaded as expected you should not be facing any trouble initializing a grid.

Could you please make sure that the scripts do not fail to load?

Another common cause for the described behavior is when jQuery is loaded more than once. Please ensure that jQuery is loaded once.


Regards,
Georgi
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
General Discussions
Asked by
Nikolay
Top achievements
Rank 2
Answers by
Georgi
Telerik team
Share this question
or