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

7 posts, 0 answers
  1. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 24 Apr 2014 Link to this post

    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
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 24 Apr 2014 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 24 Apr 2014 in reply to Dimiter Madjarov Link to this post

    Thanks, that was it, I have had the same problem before, why I did not think of it I don't know.
    Thanks agian
  5. Brian
    Brian avatar
    3 posts
    Member since:
    May 2015

    Posted 07 Oct 2015 Link to this post

    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" />​

  6. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 08 Oct 2015 Link to this post

    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
  7. Brian
    Brian avatar
    3 posts
    Member since:
    May 2015

    Posted 09 Oct 2015 Link to this post

    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.
  8. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 13 Oct 2015 Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready