New to Kendo UI for jQuery? Download free 30-day trial

Row template

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
rowtemplate.html
Sample service

Also available for:

API REFERENCE

Description

The Kendo 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 instantiated 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