Set different row colors for each level of the TreeList items
Environment
Product Version | 5.09.0 |
Product | Progress® KendoReact |
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