New to Telerik UI for Blazor? Start a free 30-day trial

Row Template

Updated on Oct 1, 2026

The row template allows you to define in your own code the entire contents of the <tr> element the treelist will render for each record. To set it, provide contents to the <RowTemplate> inner tag of the treelist.

It can be convenient if you want to use templates for most or all of the columns, as it requires less markup than setting individual templates for many columns.

The contents of the row template must be <td> elements and their number (or total colspan) must match the number of columns defined in the treelist.

You can use the Context attribute of the <RowTemplate> tag of the treelist to set the name of the context variable. Its type is the model type to which the treelist is bound.

Using the row template takes functionality away from the treelist because it no longer controls its own rendering. For example, editing could not render editors, expand-collapse arrows will not be available, column resizing and reordering cannot change the data cells anymore, only the headers, and row selection must be implemented by the app.

Using a row template

Example
View Source
Loading ...
  • the treelist looks like a grid and does not showcase the records hierarchy

See Also

In this article
See Also
Not finding the help you need?
Contact Support