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

JavaScript runtime error: Object doesn't support property or method 'kendoButton'

6 Answers 1856 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alan Mosley
Top achievements
Rank 1
Alan Mosley asked on 24 Apr 2014, 04:05 PM
I have kendo mvc wrappers in several projects, but in one project I keep getting this error, no matter what control I am using

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'kendoButton'

I have checked my project again others that are working and I cant see any difference so I am concussed as to why it is not working.

Can you tell me what would cause this error  to helpme narrow it down.

I have the right scripts I believe and all scripts and css return a status 200

<script src="/Scripts/jquery-2.1.0.js"></script>
<script src="/Scripts/jquery.validate.js"></script>
<script src="/Scripts/jquery.validate.unobtrusive.js"></script>
<script src="/scripts/jscript/thatsfunctions.js"></script>
<script src="/scripts/jscript/site.js"></script>
<script src="/scripts/kendo/kendo.all.min.js"></script>
<script src="/scripts/kendo/kendo.aspnetmvc.min.js"></script>

I have the ref to the dll, I have the namespace in webconfig

<add namespace="Kendo.Mvc.UI" />

Any ideas would be appreciated, as I have spent hours trying to get this to work, thanks

6 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 24 Apr 2014, 04:16 PM
Hi Alan,


The most probable reason for this issue is that jQuery is included more than once on the page. This will wipe all previously include jQuery plugins, including Kendo UI. Please check if this is the reason in the current case.

Let me know if this was the problem or I could assist you further.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Alan Mosley
Top achievements
Rank 1
answered on 24 Apr 2014, 04:22 PM
Thanks, that was it, I have had the same problem before, why I did not think of it I don't know.
Thanks agian
0
Brian
Top achievements
Rank 1
answered on 07 Oct 2015, 12:18 PM

I am having a similar issue with the Basic Editor.  I have created an edit using a simple HTML site and that works correctly.  However, when I incorporate the technology into my ASP.NET C# 2008 visual studio solution I receive "JavaScript runtime error: Object doesn't support property or method 'map'"  I ensured that there is only the single reference to the jquery library.  I have also included the files needed for the editor to work, and it does seem to be working correctly,but every time the page loads or refreshes I get the javascript error for the "map" method.  Below are the only script references that I have on the page and there is not Master page for the asp.net page.  Please advise.

 

<script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
     <script language="javascript" src="page.js"></script>
     <link rel="stylesheet" href="styles/kendo.common.min.css" />
     <link rel="stylesheet" href="styles/kendo.default.min.css" />​

0
Dimiter Madjarov
Telerik team
answered on 08 Oct 2015, 08:14 AM

Hello Brian,

Please send us a runnable example that demonstrates the problem here or in a separate support ticket, so we could take a look and provide assistance.

Regards,
Dimiter Madjarov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Brian
Top achievements
Rank 1
answered on 09 Oct 2015, 04:04 PM
Dimiter,

Thanks for the quick response.  I created a simple ASP page that is getting the same error and attached it as a zip file. .  Any advice would be greatly appreciated.
0
Dimiter Madjarov
Telerik team
answered on 13 Oct 2015, 08:07 AM

Hello Brian,

The provided sample code is running as expected, after loading the scripts and styles on my end. If possible, send us an isolated runnable example that we could debug locally in order to provide further assistance if needed.

Regards,
Dimiter Madjarov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Alan Mosley
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Alan Mosley
Top achievements
Rank 1
Brian
Top achievements
Rank 1
Share this question
or