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

kendo is undefined

2 Answers 661 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 07 Sep 2012, 07:50 PM
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 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Sep 2012, 01:02 PM
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!
0
Rayne
Top achievements
Rank 1
answered on 12 Sep 2012, 12:37 PM
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. 
Tags
General Discussions
Asked by
Rayne
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Rayne
Top achievements
Rank 1
Share this question
or