• Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Localization
*Translated by Google Translator.
Currency
Essential Studio
HOME
All Controls

Example of Column Template in ASP.NET Core Data Grid Control

This sample demonstrates usage of template columns in Grid. In this sample, we have shown custom images in the Employee Image column.

DEMO
SOURCE

The Grid provides a way to use a custom layout for each cell using column template feature. The columns->template property accepts either string or HTML element`s ID value, which will be used as the template for the cell.

In this demo, using column template, we have presented Employee Image column with Employee Photo and the columns->template is assigned with the ID of a SCRIPT element whose content is used as the template.

The template expression should be provided inside ${...} interpolation syntax.