You can define an ItemTemplate
that changes the color of any of the template's UI elements based on a value of your data model and use ItemTapped
to change the value of that model property
I've attached a demo that changes the color of the text from Black to Blue when you tap on any of the nodes. If you want the background to change, you can use the same approach for any other items in the data template.Further Assistance
Taking a look at the customization example source code
in the QSF demo, we have other examples as well in the SDKExamples browser
. I also recommend reading these two blog posts from Pavel, one of the TreeView developers:
1 - First Impressions
2 - Deep Dive
If you have any problems with using DataTemplates or selectors, open a support ticket here and share the code so that the TreeView team can assist directly.
Lance | Tech Support Engineer, Sr.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items