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

Scaffolding

As of the Q1 2015 release, Telerik UI for ASP.NET MVC provides Scaffolding templates.

ASP.NET Scaffolding is a code generation framework for ASP.NET applications. Telerik UI for ASP.NET MVC makes use of this framework and offers Scaffolding templates that aim to accelerate and ease the process of building an application for both Razor Pages and MVC. These templates allow you to generate helper declarations together with the related Controller action methods.

Some of the components that provide Scaffolding templates are the Grid, Scheduler, Chart, and TreeView:

Prerequisites

Install Telerik UI for ASP.NET MVC and set up your project by using either of the following approaches:

To use the scaffolding template, your development environment must meet the following requirements:

  • Visual Studio 2015 or later
  • ASP.NET MVC 5
  • C#
  • Entity Framework Data Model

The Scaffolder templates do not work in Visual Studio 2019 version 16.9.0+. A breaking change has been introduced in these Visual Studio 2019 versions, which affects the third party scaffolders. The issue has been reported to Microsoft, see Developer Community topic.

Installation

The Telerik UI for ASP.NET MVC installer automatically install the required Visual Studio extension.

You can also manually install it by navigating to the wrappers\aspnetmvc\Scaffolding folder of the distribution package and open the included vsix file. It will automatically detect compatible Visual Studio versions.

Setting Up the Project

To initially set up Scaffolder Visual Studio extension:

  1. From the New Scaffolded Item... menu which contains different items depending on the currently installed Scaffolders, access the Scaffolder extension.

    UI for ASP.NET MVC The new scaffolded item

  2. From the next menu, select Kendo UI Scaffolder. As a result, the Scaffolding configuration panel opens.

    UI for ASP.NET MVC The Kendo UI Scaffolder

  3. Select the Grid, Chart, or Scheduler control. The Controller and the corresponding view will be generated in the currently selected location.

    UI for ASP.NET MVC Selecting widgets in the Kendo UI Scaffolder

See Also

In this article