This is a migrated thread and some comments may be shown as answers.

Hilighiting nodes in tree list view

2 Answers 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ketaki
Top achievements
Rank 1
Ketaki asked on 05 May 2010, 11:36 AM
Hi there,

We are using TreeListView controle in our application.
We have requirements of "Highlighting " nodes in tree list view with some different style than normal nodes. (Remember NOT shown as selected, we want show nodes as highlighted ).
Currently, TreeListView does not have any property so that I can shown its some of nodes as highlighted .

Will you please help me to solve this issue.

2 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 05 May 2010, 03:28 PM
Hello Ketaki,

You can use the ItemContaienerStyleSelector which selects styles for the TreeList rows. This will allow you to select different styles based on some condition. A limitation here is that the styles are selected only once (when the row loads).

A more dynamic solution is to bind the Background property of the rows using ContainerBindings assigned in the treeList.ItemTemplate's DataTempalte. Container bindings allow you to bind a property of he container (the row) to a property on your ViewModel. You can bind the background to any property and use a ValueConverter if necessary.

Hopefully this will help you,

All the best,
Miroslav
the Telerik team

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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Phil
Top achievements
Rank 1
answered on 13 Jan 2013, 10:23 PM
Hi, is there any documentation or info or example of this ItemContainterStyleSelector. I have the same need as described in this post, but can't find reference or example of proposed solution?

Thanks,
Edit: Sorry, forget that. Found different solution in the documentation...
Tags
General Discussions
Asked by
Ketaki
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Phil
Top achievements
Rank 1
Share this question
or