Example of Column Template in React Tree Grid Component

/
/
ColumnTemplate

This sample demonstrates the usage of template columns in Tree Grid. In this sample, we have presented the sparkline charts.

More Details...

EMP001
Robert King2/15/1963
EMP004
David william5/20/1971
EMP035
Nancy Davolio3/19/1966
EMP045
Andrew Fuller9/20/1980
EMP091
Anne Dodsworth10/19/1989
EMP110
Michael Suyama11/2/1987
EMP131
Janet Leverling11/6/1990
EMP039
Romey Wilson2/2/1980
EMP213
Margaret Peacock1/21/1986
EMP201
Laura Callahan12/1/1990
EMP197
Steven Buchanan3/23/1987
EMP167
Tedd Lawson8/9/1989
Description

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.

More information on the column template can be found in this documentation section.