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

kendoChart method call failure

5 Answers 270 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Varghese
Top achievements
Rank 1
Varghese asked on 10 Dec 2011, 01:20 AM
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?

5 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 12 Dec 2011, 01:41 PM
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!
0
Varghese
Top achievements
Rank 1
answered on 12 Dec 2011, 05:13 PM
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.
0
Trevor
Top achievements
Rank 1
answered on 13 Feb 2012, 08:38 PM
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?
0
brian keating
Top achievements
Rank 1
answered on 27 Aug 2012, 10:49 AM
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.
0
Craig
Top achievements
Rank 1
answered on 10 Nov 2015, 01:47 AM

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."

Tags
General Discussions
Asked by
Varghese
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Varghese
Top achievements
Rank 1
Trevor
Top achievements
Rank 1
brian keating
Top achievements
Rank 1
Craig
Top achievements
Rank 1
Share this question
or