Skip to content Skip to sidebar Skip to footer

How To Set The Tree View Node Color For Kendo UI TreeView?

I want to set the tree view color based on the value defined in the datasource field, From this link, I think that what I am trying to do is possible, but I am not using MVVM, so

Solution 1:

Define the template as:

    template: "<span style='color: #= item.text #'>#= item.text # color:#: item.color #</span>",

As far as the color is valid color name it should work.

Your JSFiddle modified here: http://jsfiddle.net/OnaBai/qZeK6/3/


Post a Comment for "How To Set The Tree View Node Color For Kendo UI TreeView?"