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

8 posts, 1 answers
  1. Alan
    Alan avatar
    4 posts
    Member since:
    Mar 2012

    Posted 28 Mar 2012 Link to this post

    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.
  2. Alan
    Alan avatar
    4 posts
    Member since:
    Mar 2012

    Posted 29 Mar 2012 Link to this post

    does anyone encounter the same issue?
  3. Kendo UI is VS 2017 Ready
  4. Alan
    Alan avatar
    4 posts
    Member since:
    Mar 2012

    Posted 29 Mar 2012 Link to this post

    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.
  5. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 29 Mar 2012 Link to this post

    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!
  6. Alan
    Alan avatar
    4 posts
    Member since:
    Mar 2012

    Posted 29 Mar 2012 Link to this post

    thanks for your help. Atanas.
  7. Gaurav
    Gaurav avatar
    1 posts
    Member since:
    Sep 2012

    Posted 31 Jan 2013 Link to this post

    Placing the dataviz before the web doesn't help.
    Custom download builder tool worked.
  8. Ryan
    Ryan avatar
    3 posts
    Member since:
    Jul 2012

    Posted 04 Mar 2014 in reply to Atanas Korchev Link to this post

    Has this issue been fixed? Our team is still seeing it. We are using the Q3 2013 release.
  9. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 05 Mar 2014 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready