Cannot create a Grid instance

2 posts, 1 answers
  1. Nikolay
    Nikolay avatar
    9 posts
    Member since:
    Mar 2010

    Posted 29 Mar Link to this post

    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.

     

     

  2. Answer
    Georgi
    Admin
    Georgi avatar
    558 posts

    Posted 02 Apr Link to this post

    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.
Back to Top