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

Row template

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Theme Builder
  • rowtemplate.cshtml
  • RowTemplateController.cs
  • EmployeeDirectoryController.cs
  • EmployeeDirectoryModel.cs

Also available for:

API REFERENCE

Description

The Telerik UI TreeList allows flexible customization of its rows in terms of layout and appearance by exposing the row template feature for this purpose.

In this example we present how you can specify your own custom layout for the rows in the treeList using images and binding the values of the properties in the model from its underlying data source. The templates are defined via script tags with ids associated with rendered HTML table row elements in the TreeList. Note that the row and altrow templates are evaluated by calling the kendo.template method and assigning the returned value to the row template and alternating row template attributes of the treeList instance.

Support & Learning Resources