Kendo.synchReady is not a function Error

74 posts, 0 answers
  1. Randy
    Randy avatar
    75 posts
    Member since:
    Jul 2009

    Posted 28 Feb 2017 Link to this post

    I have been using the trial version of DevComplete. I've been building a web app using Kendo UI MVC. Up until this point I haven't had any issues. However, a couple days ago I purchased DevComplete. I installed the production Kendo.MVC dll in my project. Now my app is not working. When I attempt to load any page with a Kendo UI Grid, I am getting a JavaScript error that says kendo.synchReady is not a function. 

    The actual code that Kendo is generating, in part, looks like this:

    kendo.syncReady(function(){jQuery("#grid").kendoGrid({"columns":[{"title":"Last Name","headerAttributes":{"data-field":"LastName","data-title":"Last Name"},"width":"150px","field":"LastName","encoded":true,"editor":"...

    Can someone tell me what happened? The only change I've made was to install the production Kendo.Mvc.dll in place of the trial version.

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 02 Mar 2017 Link to this post

    Hello Randy,

    The method that throws the error is from the latest version and the fact that this particular error is thrown indicates that the script files are not updated and you are referring the previous JS files. Can you please check if that is the case and if so, replace them with the scripts from the latest version.

    Looking forward to your reply with the result.


    Regards,
    Konstantin Dikov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Puriwat
    Puriwat avatar
    7 posts
    Member since:
    May 2013

    Posted 05 Mar 2017 Link to this post

    I got the same error. I use kendo version 2017.1.223.545 and jquery version 3.1.1.

    Please see error on captured screen attachment.

    Thank you

  4. Puriwat
    Puriwat avatar
    7 posts
    Member since:
    May 2013

    Posted 05 Mar 2017 Link to this post

    I'm sorry. I forgot to tell that I still can't find the solution yet, so please help.

    Thank you.

  5. Morten
    Morten avatar
    350 posts
    Member since:
    Jul 2012

    Posted 06 Mar 2017 Link to this post

    I'm getting this error too. It seems to be when I'm using the Kendo.Mvc.dll 2017.1.223.545

  6. Morten
    Morten avatar
    350 posts
    Member since:
    Jul 2012

    Posted 06 Mar 2017 in reply to Morten Link to this post

    screen shot
  7. Morten
    Morten avatar
    350 posts
    Member since:
    Jul 2012

    Posted 06 Mar 2017 in reply to Morten Link to this post

    screen shot
  8. Morten
    Morten avatar
    350 posts
    Member since:
    Jul 2012

    Posted 06 Mar 2017 in reply to Morten Link to this post

    reverting back to v2016.3.1317 solves the problem
  9. Puriwat
    Puriwat avatar
    7 posts
    Member since:
    May 2013

    Posted 06 Mar 2017 Link to this post

    Yes. It's solved when I revert back to previous release too.
  10. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 07 Mar 2017 Link to this post

    Hi,

    The missing kendo.syncReady method is introduced in our latest version and you need to ensure that all reference to the script files are pointing to the latest version (2017.1 223). Following are the references to the cdn scripts, but if you are using local copy you need to ensure that the scripts correspond to the latest version:


    Best Regards,
    Konstantin Dikov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  11. 宏吉
    宏吉 avatar
    40 posts
    Member since:
    Mar 2017

    Posted 09 Mar 2017 in reply to Konstantin Dikov Link to this post

    HI 

      I gettting this error too.I'm using the Kendo.Mvc.dll 2017.1.223.545 .Styles and js also for 2017.1.223

     

  12. 宏吉
    宏吉 avatar
    40 posts
    Member since:
    Mar 2017

    Posted 09 Mar 2017 in reply to Konstantin Dikov Link to this post

    I'm getting this error too. I'm using the Kendo.Mvc.dll 2017.1.223.545 

    styles and js also for 2017.1.223

    how to get the v2016.3.1317 this version
  13. Arnold
    Arnold avatar
    1 posts
    Member since:
    Feb 2017

    Posted 09 Mar 2017 Link to this post

    We are having this issue as well. After upgrade we tried it with both CDN and local script files.

     

    A new project from the MVC template runs fine though.

  14. Alou
    Alou avatar
    2 posts
    Member since:
    Apr 2013

    Posted 10 Mar 2017 Link to this post

    Any update on this? I experiencing the same issue after updated to 2017.1.223

  15. Alou
    Alou avatar
    2 posts
    Member since:
    Apr 2013

    Posted 10 Mar 2017 Link to this post

    Any update on this? I having the same issue after updating to 2017.1.223 version.
  16. BENTLEY
    BENTLEY avatar
    1 posts
    Member since:
    Sep 2013

    Posted 10 Mar 2017 in reply to Randy Link to this post

    If you guys are using the custom download option, I was able to get rid of the error by selecting all options under the core framework list.  Although I dont need all in this list, my instinct tells me something is off with the core files.

    Framework

    Shared components providing behaviors, data access and other services

  17. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 13 Mar 2017 Link to this post

    Hi,

    The syncReady method is added in the kendo.aspnetmvc.js file, because the reason for including it was a major problem with jQuery 3.1 and how the templates are generated in MVC. With that in mind, ensuring that the kendo.aspnetmvc.js file is updated with the latest version should resolve the error with the missing function.


    Best Regards,
    Konstantin Dikov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  18. Scott
    Scott avatar
    1 posts
    Member since:
    Jul 2015

    Posted 13 Mar 2017 in reply to Konstantin Dikov Link to this post

    Hi Konstantin,

    I downloaded the 2017.1.223 version and then manually copied into my project the CSS and JS files.  I'm still getting that kendo.syncReady is not a function issue.  I'm assuming that if I copied over the kendo.aspnetmvc.min.js from the "UI for ASP.NET MVC R1 2017" folder that it is the right one.  Am I wrong?

    -Scott

  19. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 15 Mar 2017 Link to this post

    Hello Scott,

    The correct folder should be R1 2017 SP1, because version 2017.1 223 is from the SP release:
    Please let me know if copying the kendo.aspnetmvc.min.js file from the SP1 folder resolves the issue.


    Regards,
    Konstantin Dikov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  20. Jo
    Jo avatar
    1 posts
    Member since:
    Feb 2017

    Posted 16 Mar 2017 Link to this post

    Hello,

    I am using Kendo.Mvc version - 2017.1.233.545.  My project was running fine with an older version of Kendo but now, i get an error, 

    kendo.syncReady is not a function. 

    This thread mentions several ways to fix.  Kendo team, please provide your response on how this can be resolved. 

  21. Joseph Farrar
    Joseph Farrar avatar
    2 posts
    Member since:
    Jun 2010

    Posted 16 Mar 2017 Link to this post

    I just created a brand new project to test. Still having the issue using all 2017.1.223 versions of the files. Website still comes up and states that kendo.syncReady is not a function.

    Now when I forcefully include script src="@Url.Content("~/Scripts/kendo/2017.1.223/kendo.aspnetmvc.min.js")" into my scripts it works as expected.

  22. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 20 Mar 2017 Link to this post

    Hello Joseph,

    Currently the suggestion for including the reference to the correct version of the kendo.aspnetmvc.min.js file should resolve the issue. Nevertheless, we will make some tests locally with the update wizard to see if we can replicate the problem on our end.


    Regards,
    Konstantin Dikov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  23. Chris
    Chris avatar
    1 posts
    Member since:
    Jul 2015

    Posted 20 Mar 2017 Link to this post

    We discovered this when a new starter downloaded the latest UI for ASP.NET MVC which was R1 2017.

    Our existing application was using the files from R3 2016 and we began getting the error saying "kendo.syncReady is not a function".

    To fix this this we just installed the previous version (R3 2016 from the Telerik website) alongside R1 2017 and swapped over the Kendo.Mvc dll.

  24. Vassilis
    Vassilis avatar
    1 posts
    Member since:
    Mar 2017

    Posted 21 Mar 2017 Link to this post

    I also came across this error and temporarily overcame it by explicitly including 

    <script src="@Url.Content("~/Scripts/kendo/2017.1.223/kendo.aspnetmvc.min.js")"></script>

    into my _Layout.cshtml.

    However this is temporary and I expect an official solution from Telerik.

  25. Naga
    Naga avatar
    1 posts
    Member since:
    Feb 2017

    Posted 29 Mar 2017 Link to this post

    I came across this error. I found the issue. I am using local resources, I have copied all the required scripts and css files to the corresponding location. 

    I was hoping that by doing this will fix the problem after rebuilding the solution/project. I have overlooked the browser cache issue everyone experiences with js files. After struggling for a while, I did hard refresh on the browser ctrl+F5 which loaded latest js files and its fixed.

    Hope this helps

  26. Stefan
    Admin
    Stefan avatar
    3034 posts

    Posted 31 Mar 2017 Link to this post

    Hello Naga,

    Thank you all for sharing different solutions with the Kendo UI community.

    As this is a new function introduced in the 2017 version of Kendo UI, every information and solutions are highly appreciated.

    Regards,
    Stefan
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  27. Morten
    Morten avatar
    350 posts
    Member since:
    Jul 2012

    Posted 01 Apr 2017 in reply to Stefan Link to this post

    Hi Stefan,

    I used to get the latest builds, copy js and dll into my project, test and run. With 2017.1 and the "syncReady" error I no longer to this.

    I'd really like an official article explaining the trouble and an official solution, so I could upgrade to 2017.

    /Morten

  28. Stefan
    Admin
    Stefan avatar
    3034 posts

    Posted 04 Apr 2017 Link to this post

    Hello Morten,

    Currently, there is not an official article as the issue occurs if the Kendo UI scripts and the DLL file are not updated correctly or as mentioned cached:

    http://docs.telerik.com/aspnet-mvc/introduction#upgrade

    If we notice that there are more specific steps different than the regular version update, we will document them accordingly.

    Regards,
    Stefan
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  29. Morten
    Morten avatar
    350 posts
    Member since:
    Jul 2012

    Posted 04 Apr 2017 in reply to Stefan Link to this post

    Hi Stefan,

    thanks for you reply. However, I'm not sure I understand.

    Previously in this thread you mention, that "...this is a new function introduced in 2017..." and several posters incl. Kendo staff refer to including kendo.aspnetmvc.min.js to fix the problem.

     

    In your last post, you say that the error is caused by an incorrect version upgrade, and not by a newly introduced function. 

     

    I would be really happy if you could clarify.

     

    Thanks in advance.

     

    /Morten

  30. Bob
    Bob avatar
    12 posts
    Member since:
    Feb 2014

    Posted 05 Apr 2017 Link to this post

    We are experiencing the same issue with kendo.syncReady.

    We are using the following:

    * Kendo.Mvc.dll version 2017.1.223.545.

    * Kendo UI for JQuery Javascript files version 2017.1.223

    * JQuery Version 2.2.4

    * RequireJS Version 2.3.3

    Our code that is failing. Note that "Start" is a global function that is a RequireJS wrapper for document.ready:

        start(function () {
            require(['kendo/kendo.window.min'], function () {
                kendo.syncReady(function(){jQuery("#enrollmentWizardWindow").kendoWindow({"modal":true,"iframe":false,"draggable":true,"scrollable":true,"pinned":false,"title":null,"resizable":false,"actions":["Close"]});});;
            });
        });

     

    Attached are screenshots proving this. As you can see in the "network tab of Chrome" screenshot, the kendo.aspnetmvc.js file is loading before the JavaScript on the HTML page executes.

    Please give us an ETA of when this critical bug is fixed so we can adjust our current release timeline.

Back to Top