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

Scaffolding for Telerik UI for ASP.NET MVC

Since the R2 2023 release, Telerik UI for ASP.NET MVC provides new way of generating Scaffolding templates as a convenient productivity feature.

UI for ASP.NET MVC Adding a new scaffolded item with the Telerik UI Scaffolder for MVC

The new Scaffolder items in Visual Studio allow quick code generation and mocking of data for some of the most used data-bound components, such as the ASP.NET MVC Data Grid, TreeList, Scheduler, ListView, Gantt, Chart, Form and Editor.

Installation

The Telerik UI Scaffolder comes with the installer of the Telerik UI for ASP.NET MVC components version 2023 R2 and later. No additional installation files are required.

To get the Scaffolding templates, download and install the latest version of the Telerik UI for ASP.NET MVC .msi installer and the Telerik Extensions for Visual Studio will be installed automatically together with the Scaffolding items.

Alternatively, you can install the Extensions individually from the VS MarketPlace.

Scaffolding Templates

The ASP.NET MVC and VS already provide their own default Scaffolding items, but they shouldn't be confused with the new Telerik UI Scaffolding items.

To access the Telerik UI Scaffolding templates:

  1. Right-click the project in the VS Solution Explorer.
  2. Select the Telerik UI for ASP.NET MVC submenu.
  3. Select the Add New Scaffolded Item option.

UI for ASP.NET MVC Using the Telerik UI Scaffolder for MVC

Then, you are presented with several popular components you can choose from. You can also set the name of the new View and Controller files, as well as, a selection of other properties for different tools like the Grid and TreeList.

The final result conveniently generates everything required to run the page from the first go - a View page, a Controller file and a Model definition. This way, you can quickly begin with a working app and modify it to match your own business and development needs.

See Also

In this article