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

Script error: Unable to get value of the property 'data': object is null or undefined

2 Answers 272 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ewald
Top achievements
Rank 1
Ewald asked on 10 Dec 2012, 04:21 PM
Hello,

I am encountering an error for which several forum posts with solutions were posted for Telerik MVC, but I can't seem to find how to solve it with Kendo.

When running my page with Kendo grid in Chrome or Firefox, all works fine.
However, when opening the page in IE9, It throws the following error:
SCRIPT5007: Unable to get value of the property 'data': object is null or undefined <br>kendo.aspnetmvc.min.js, line 8 character 2212
But besides that, everything seems functional.
For MVC, the solution seemed to be using the @html.Telerik.ScriptRegistrar to force it to use the latest JQuery etc.

For Kendo, I don't seem to be able to find something similar.
I am using Kendo UI Complete v2012.2.710
JQuery version 1.8.1
Query.UI.Combined 1.8.23
jQuery.Validation 1.10.0

the following scripts are included
<script src="@Url.Content("~/Scripts/modernizr-2.6.2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-1.8.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.23.min.js")" type= "text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type= "text/javascript"></script>
<script src="@Url.Content("~/Scripts/kendo/kendo.aspnetmvc.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/kendo/kendo.all.js")" type= "text/javascript"></script>
<script src="@Url.Content("~/Scripts/kendo/kendo.web.min.js")" type="text/javascript"></script>

I also attempted adjusting the X-UA-Compatible without success:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
How to solve this with Kendo?

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 12 Dec 2012, 10:33 AM
Hi Edwald,

 
After reviewing the provided information it seems that the project currently uses KendoUI v2012.2.710 with unsupported jQuery v1.8.1. Please note that KendoUI 2012.2.710 supports only jQuery v.1.7.2 and if you need to use 1.8+ versions you should upgrade to KendoUI 2012.2.913(Q2 SP1) or 2012.3.1114 (Q3 release). For more information about the required scripts you can check the JavaScript Dependencies article.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ewald
Top achievements
Rank 1
answered on 12 Dec 2012, 01:57 PM
Thank you,

I used the custom download builder tool to download the Q3 release and upgraded my JQuery to 1.8.3 and all seems to work now.

Thanks!
Tags
Grid
Asked by
Ewald
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Ewald
Top achievements
Rank 1
Share this question
or