New to KendoReact? Start a free 30-day trial

Set different row colors for each level of the TreeList items

Updated on Aug 14, 2026

Environment

Product Version5.09.0
ProductProgress® KendoReact TreeList

Description

I want to have different colors for the TreeList rows based on the level of the data item.

Solution

For achieving the desired result the rowRender of the TreeList can used for setting custom backgroundColor for each TR element based on the "level" value of the TreeListRowProps

Following is an example demonstrating such implementation

Example
View Source
Loading ...
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support