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:
Why does it work in Chrome, but throw the error in IE9? Is it some setting in IE that's causing trouble for me?
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?