New to Telerik UI for Blazor? Download Free 30-day trial

Grid - Template Basics

Column and Header Templates

Row and Pager Template

  • Templates.razor
  • ArticleService.cs
  • ArticleDto.cs
Loading the demo source code...please wait.

Description

The Telerik UI for Blazor Grid exposes various Templates that allow you to take control of the rendering of different aspects of the components. You can alter the default editor of the Grid by using the EditorTemplate. For example, if you want to edit your DateTime column with DateTimePicker, instead with the default DatePicker. You can control the rendering of the column and override the default rendering by using the Column Template as shown in the left-hand side Grid in this demo. The other Grid component showcases the usage of the Row Template. This template allows you to define in your own code the entire contents of the <tr> element the grid will render for each record.
This Data Grid Template Basics example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.