kendoChart method call failure

6 posts, 0 answers
  1. Varghese
    Varghese avatar
    25 posts
    Member since:
    May 2011

    Posted 09 Dec 2011 Link to this post

    I have set up my MVC application to display a kendo line chart. The kendo scripts are getting loaded correctly, but I get the follow the error:

    Error: Object doesn't support property or method 'kendoChart'

    I tried to use different versions of JQuery thinking the version 1.5 which is the default for the mvc application has problem. I can't figure this out. Am I getting this error because I'm not loading the JQuery UI? I'm using knockout library in my project. Is there a problem of compatibility kendo has with knockout?
  2. T. Tsonev
    T. Tsonev avatar
    2762 posts

    Posted 12 Dec 2011 Link to this post

    Hello Varghese,

    Please make sure that you're including the Kendo scripts after jQuery. Otherwise the Kendo extension methods will be overwritten.

    Also, have you considered using the MVC Chart wrappers offered as part of the MVC Extensions suite?

    All the best,
    Tsvetomir Tsonev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Varghese
    Varghese avatar
    25 posts
    Member since:
    May 2011

    Posted 12 Dec 2011 Link to this post

    Thanks. After I rearranged the jquery and kendo files it worked. The kendo file reference should be after the jquery reference as you said.

    I'm using the MVC extensions for the web and Kendo UI for the charting.
  4. Trevor
    Trevor avatar
    5 posts
    Member since:
    Feb 2012

    Posted 13 Feb 2012 Link to this post

    I am getting a similar error but I do have jQuery first in the script section.  It seems I can't instantiate a kenoChart at all.  Any other clues?
  5. brian keating
    brian keating avatar
    5 posts
    Member since:
    Jan 2010

    Posted 27 Aug 2012 Link to this post

    one problem may be that you're trying to include jquery twice?
    lets say for example you intend to have a partial view and you end up in your controller calling View() as opposed to PartialView()

    if you partial view includes jQuery and the layout pages does you may have a problem.

    easy way to check it out is to view source form the browser and have a look.
  6. Craig
    Craig avatar
    1 posts
    Member since:
    Jul 2013

    Posted 09 Nov 2015 Link to this post

    I am new to Kendo.  This was happening to me for the chart.  Other items like the date picker were working.  I came across this note on another web site.  I am surprised that this was not pointed out in the multiple threads posted about this issue anywhere at Telerik.

    Solution for me:  "You should include "kendo.all.min.js". The "kendo.web.min.js" doesn't include Kendo UI DataViz widgets."

Back to Top