kendo is undefined

3 posts, 0 answers
  1. Rayne
    Rayne avatar
    261 posts
    Member since:
    Sep 2010

    Posted 07 Sep 2012 Link to this post

    I'm not sure what is going on. I'm doing an MVC4 app with VS2012. My ready function defines a new datasource, then a grid. When I run the app in Chrome, it works fine. When I run my app in IE9, it throws an error on the code that defines the datasource with "kendo is undefined".

    Here is my code:

    //define the dataSource for the grid
    searchVM.dataSource = new kendo.data.DataSource({
        schema: {
            model: {
                fields: {
                    Number: { type: "string" },
                    DateReceived: { type: "date" },
                    County: { type: "string" },
                    Media: { type: "string" }
                }
            }
        },
        pageSize: 10,
        change: function (e) {
            //refresh the grid
            var grid = $("#searchResults").data("kendoGrid");
            grid.refresh();
        }
    });


    Why does it work in Chrome, but throw the error in IE9? Is it some setting in IE that's causing trouble for me?
  2. Dimo
    Admin
    Dimo avatar
    8474 posts

    Posted 11 Sep 2012 Link to this post

    Hello Rayne,

    The provided information is not enough to find out what causes the problem. Please make sure that all Javascript files are successfully served to the IE browser and registered in the correct order.

    If the problem persists, please open a support ticket and attach a runnable demo or a live URL there.

    Greetings,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Rayne
    Rayne avatar
    261 posts
    Member since:
    Sep 2010

    Posted 12 Sep 2012 Link to this post

    I was able to fix the problem by using a local copy of kendo.web.min.js (v 2012.2.710) instead of linking to the CDN (same version).
    Not sure why this worked, but maybe it was an issue of IE not being able to access the CDN. 
Back to Top