Kendo UI is not working with MVC5 in VS2012

2 posts, 0 answers
  1. yogaraj
    yogaraj avatar
    7 posts
    Member since:
    Aug 2014

    Posted 24 Sep 2014 Link to this post

    I'm using VS2012 and MVC5. I dowloaded the telerik.ui.for.aspnetmvc.2014.2.903.trial and followed the below steps

    Added the Kendo.Mvc.dll reference to my project. (got Kendo.Mvc.dll from telerik.ui.for.aspnetmvc.2014.2.903.trial\wrappers\aspnetmvc\Binaries\Mvc5)
    Copied the JS and Style folders from telerik.ui.for.aspnetmvc.2014.2.903.trial
    Created BundleConfig.cs as per the telerik website tutorial
    added the reference link _Layout.cshtml and did the web.config settings as suggested

    when i run the application i'm getting javascript runtime error in the following debugger code


    jQuery(function(){jQuery("#datepicker").kendoDatePicker({"format":"M/d/yyyy","min":new Date(1900,0,1,0,0,0,0),"max":new Date(2099,11,31,0,0,0,0)});});

    can please help to resolve my issue.

  2. Dimo
    Admin
    Dimo avatar
    8472 posts

    Posted 26 Sep 2014 Link to this post

    Hi Yogaraj,

    Please make sure that:

    - jQuery is registered
    - the Kendo UI scripts are registered
    - there is only one jQuery instance on the page
    - jQuery is registered before the Kendo UI scripts
    - jQuery and Kendo UI are registered before any widget declarations that need them
    - the jQuery version is compatible with the Kendo UI version

    http://docs.telerik.com/kendo-ui/install/prerequisites#supported-jquery-versions

    http://docs.telerik.com/kendo-ui/troubleshooting

    http://docs.telerik.com/kendo-ui/aspnet-mvc/troubleshooting

    If the problem persists after making all the above checks, please send a runnable project for further investigation.

    Regards,
    Dimo
    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.

     
Back to Top