This is a migrated thread and some comments may be shown as answers.

How to register customer js file in Kendo

3 Answers 192 Views
Application
This is a migrated thread and some comments may be shown as answers.
york
Top achievements
Rank 1
york asked on 07 Aug 2015, 04:07 AM

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.

3 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 11 Aug 2015, 06:01 AM
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
0
york
Top achievements
Rank 1
answered on 12 Aug 2015, 04:00 AM

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?

 

0
Alexander Popov
Telerik team
answered on 12 Aug 2015, 11:05 AM
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
Tags
Application
Asked by
york
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
york
Top achievements
Rank 1
Share this question
or