New to Telerik UI for ASP.NET MVC? Download free 30-day trial
ASP.NET MVC TreeList Row template
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
The Telerik TreeList for ASP.NET MVC component 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.