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

Row Templates

Updated on Oct 28, 2026

The Kendo UI Grid supports row templates which enable you to place custom content into a Grid row.

When you use a ClientRowTemplate, the template defines the complete <tr> and <td> markup. To center a cell, add a class or an inline text-align style directly to the relevant <td> element.

Razor
    .ClientRowTemplate("<tr data-uid='#=data.uid#'>" +
        "<td class='toppane-input-wrap'>#=data.OrderID#</td>" +
        "<td class='toppane-input-wrap'>#=data.ShipCountry#</td>" +
    "</tr>")

The toppane-input-wrap class in this example is a custom application class, not a Kendo UI class. For standard generated Grid cells, use the column alignment options described in the content alignment article.

For runnable examples, refer to:

The following example demonstrates how to use a string row template which generates two columns. The outermost HTML element in the template must be a table row (<tr>). That table row must have the uid data attribute set to #= uid #. The grid uses the uid data attribute to determine which data a table row is bound to.

Razor
        .ClientRowTemplate("<tr data-uid='#=data.uid#'>" +
            "<td>#=data.OrderID#</td>" +
            "<td><strong>#=ShipCountry #</strong></td>" +
        "</tr>")

UI for ASP.NET Core A Grid with an applied row template

See Also

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