How to register customer js file in Kendo

4 posts, 0 answers
  1. york
    york avatar
    160 posts
    Member since:
    Jul 2012

    Posted 06 Aug 2015 Link to this post

    Hi,

    I have a Telerik MVC extension project that register customer js file as follow:

            <%= Html.Telerik().ScriptRegistrar().Globalization(true)
                              .DefaultGroup(group => group
                                                    .Add("RingScripts.js")
                                                    )
                %>   

     ​After converting it to Kendo project, I find that RingScripts.js is not registered and so javascript functions can not be called. I'd like to know how to register customer js file in Kendo.

    Thanks.

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 11 Aug 2015 Link to this post

    Hello,

    Kendo UI does not use ScriptRegistrar, so loading the scripts as usual is the recommended approach. I would also suggest checking the Migrating from Telerik Extensions for ASP.NET MVC article.

    Regards,
    Alexander Popov
    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. york
    york avatar
    160 posts
    Member since:
    Jul 2012

    Posted 11 Aug 2015 in reply to Alexander Popov Link to this post

    I have a custom javascript file .js that sits in Scripts folder in Telerik extension project, but in Kendo, it can not be found. What happen?

     

  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 12 Aug 2015 Link to this post

    Including JavaScript files to ASP.NET MVC projects is not directly related to Kendo UI. I would suggest checking the following articles: 
    http://www.asp.net/mvc/overview/performance/bundling-and-minification
    http://wildermuth.com/2012/01/20/Modern_Web_Development_-_Part_2


    Regards,
    Alexander Popov
    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