New to KendoReactStart a free 30-day trial

Set different row colors for each level of the TreeList items

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

Change Theme
Theme
Loading ...
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support