KENDO MENU problem

3 posts, 1 answers
  1. Adriano
    Adriano avatar
    2 posts
    Member since:
    Dec 2015

    Posted 28 Apr Link to this post

    Hello! We have a problem with your KENDO UI Menu.

    We are using the version 2017.1.223 (the last) and we tried to create a new Visual Studio 2015 MVC solution and tried to insert the menu using the examples we found in the following links.

    http://demos.telerik.com/kendo-ui/menu/index

    http://demos.telerik.com/aspnet-mvc/menu/index

    If you paste HTML5 code everything works perfectly, but if we use ASP.NET MVC code, we get the following error

    Uncaught TypeError: kendo.syncReady is not a function

    Can anyone help us solve the problem? (because we want use Razor Syntax for C#) 

    Thanks!

    I have a problem with a Kendo menu. We are using version 2017.1.223 (last) and we tried to create a new MVC solution and tried to insert a menu using the examples we found in the following link. If you paste HTML5 code everything works perfectly, but if we use ASP.NET MVC code, we get the following error. Can anyone help us solve the problem?
    I have a problem with a Kendo menu. We are using version 2017.1.223 (last) and we tried to create a new MVC solution and tried to insert a menu using the examples we found in the following link. If you paste HTML5 code everything works perfectly, but if we use ASP.NET MVC code, we get the following error. Can anyone help us solve the problem?
    I have a problem with a Kendo menu. We are using version 2017.1.223 (last) and we tried to create a new MVC solution and tried to insert a menu using the examples we found in the following link. If you paste HTML5 code everything works perfectly, but if we use ASP.NET MVC code, we get the following error. Can anyone help us solve the problem?
  2. Answer
    Nencho
    Admin
    Nencho avatar
    1661 posts

    Posted 28 Apr Link to this post

    Hello Adriano,

    The experienced error is due to a missing of the syncReady method, which is introduced in our latest official version. Hence, you need to ensure that the scripts, containing that method are included ( kendo.aspnetmvc.min.js). You and either reference our CDN or the local script file on your page. 

    This topic is largely discussed in the following forum thread as well:

    http://www.telerik.com/forums/kendo-synchready-is-not-a-function-error


    Regards,
    Nencho
    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. Adriano
    Adriano avatar
    2 posts
    Member since:
    Dec 2015

    Posted 28 Apr in reply to Nencho Link to this post

    Thank you Nencho.

    We fixed this problem changing the file BundleConfig.cs like this

    ....

    bundles.Add(new ScriptBundle("~/bundles/Libraries").Include(
                   "~/Scripts/kendo/2017.1.223/jquery.min.js",
                    "~/Scripts/kendo/2017.1.223/jszip.min.js",
                    "~/Scripts/kendo/2017.1.223/angular.min.js"));

                bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
                    
                    "~/Scripts/kendo/2017.1.223/kendo.all.min.js",
                    "~/Scripts/kendo/2017.1.223/kendo.aspnetmvc.min.js"
                    ));

    .....

     

    and adding, in the tag >HEAD> of my "_Layout.cshtml" (and in all pages where needed)

    .....

    @Scripts.Render("~/bundles/Libraries")
    @Styles.Render("~/Content/css/kendo")

    ....

    Perfect!

    :)

     

Back to Top