Example of Column Template in ASP.NET MVC Tree Grid Control

This sample demonstrates the usage of template columns in Tree Grid. In this sample, we have shown SparkLine control in Tree Grid columns.

DEMO
SOURCE
;

The Tree Grid provides a way to use a custom layout for each cell using column template feature. The Columns->Template property accepts either string or HTML element`s ID value, which will be used as the template for the cell.

In this demo, using column template, we have presented SparkLine charts for the "Tax per annum", "One day index" and "Year GR" columns. In Columns->Template we have assigned with the ID of a SCRIPT element whose content is used as the template.

The template expression should be provided inside ${...} interpolation syntax


More information on the data binding can be found in this documentation sectionopens in a new tab.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab