New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Providing Client-Side Resources for Telerik UI for ASP.NET MVC

This article outlines the approaches for adding the Kendo client-side assets to your application.

The Telerik UI for ASP.NET MVC suite is a set of server-side wrappers over the Kendo UI for jQuery client-side widgets. To use the UI for ASP.NET MVC components in an application, you need not only the binaries that enable you to use the HtmlHelpers, but also the required JavaScript and CSS client-side web assets.

Available Approaches

You can use the following methods for adding the Kendo client-side resources to your project:

  • Using local files

    You can provide the client-side assets by downloading the required JavaScript and CSS files from the Telerik website and then copying them in your project. For the detailed step-by-step procedure, see the Using Local Files article.

  • Using CDN

    The Kendo UI client-side resources like JavaScript files and CSS files are available online through the Kendo CDN service. This allows you to configure your project to import the client-side resources directly from the CDN. For more details, see the Using CDN article.

Creating Custom Script Bundles

Depending on the Telerik UI components that you use in your project, you may need only the scripts that support the components in your application. To find the scripts that you must include in your application, check the documents under Installation > Providing Client-Side Resources > Creating Custom Script Bundles. For example, to find out what scripts are required to use the Telerik UI Charts, see the Individual Scripts for Charts document.

Clients with a commercial license can use the Custom Download Builder tool to create a single JavaScript file which contains the dependencies only for the required widgets and features.

  • Do not use multiple custom combined scripts, as they will contain duplicate code. Instead, create one combined script file, which includes everything you need.
  • Do not use RequireJS to load Download Builder packages because the tool will not create the required AMD modules.
  • Make sure the Server Wrappers checkbox is checked—this will include the scripts required by the wrappers.

Next Steps

See Also

In this article