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

kendo.web.min.js and kendo.dataviz.min.js conflicts in pageable Grid.

7 Answers 589 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 29 Mar 2012, 04:43 AM
Hi,
The problem occurs when I add  the <script src="../../../js/kendo.dataviz.min.js"></script> to the  \examples\web\grid\index.html example. Then I refresh the IE window, a JS error "Microsoft JScript runtime error: Object doesn't support this action" occurs. If I change the "pagable:true"  in the \examples\web\grid\index.html to "pagable:false", the JS error disappears.  You can see the details in the attached image.
I have no idea why this happens. Can you give me a solution to fix it?

Any clue and suggestion is appreciated. thank you.

7 Answers, 1 is accepted

Sort by
0
Alan
Top achievements
Rank 1
answered on 29 Mar 2012, 08:07 AM
does anyone encounter the same issue?
0
Alan
Top achievements
Rank 1
answered on 29 Mar 2012, 08:37 AM
it seems that i come up with a solution.
I change the script reference order. The original is as follows.

<script src="Scripts/kendo.web.min.js" type="text/javascript"></script>
<script src="Scripts/kendo.dataviz.min.js" type="text/javascript"></script>
 
it is changed to the followings and the js error didappears.
<script src="Scripts/kendo.dataviz.min.js" type="text/javascript"></script>
<script src="Scripts/kendo.web.min.js" type="text/javascript"></script>

But i still don't understand why this works.
0
Accepted
Atanas Korchev
Telerik team
answered on 29 Mar 2012, 08:46 AM
Hello, 

This problem occurs because kendo.web.min.js and kendo.dataviz.min.js share common code (kendo.core.js, kendo.data.js etc). We will try to address the problem in a future release. For an immediate workaround you can try two things:
  1. Include kendo.dataviz.js before kendo.web.js
  2. Use the custom download builder tool to create a custom combined JavaScript file

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Alan
Top achievements
Rank 1
answered on 30 Mar 2012, 02:34 AM
thanks for your help. Atanas.
0
Gaurav
Top achievements
Rank 1
answered on 01 Feb 2013, 05:18 AM
Placing the dataviz before the web doesn't help.
Custom download builder tool worked.
0
Ryan
Top achievements
Rank 1
answered on 04 Mar 2014, 06:25 PM
Has this issue been fixed? Our team is still seeing it. We are using the Q3 2013 release.
0
Atanas Korchev
Telerik team
answered on 05 Mar 2014, 08:36 AM
Hi,

It turned out that fixing this wasn't possible and this is why we decided not to support this scenario. If you want to use web and dataviz in the same page you should either include kendo.all.min.js or use the custom download builder tool to create a custom JavaScript file containing only the features you are using.
More information is available in our documentation.

Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Alan
Top achievements
Rank 1
Answers by
Alan
Top achievements
Rank 1
Atanas Korchev
Telerik team
Gaurav
Top achievements
Rank 1
Ryan
Top achievements
Rank 1
Share this question
or