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

Toggle Button Visibility

1 Answer 22 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 04 Oct 2012, 08:39 PM
I have a tree that is populated by self referencing data. One of my tasks is to select the item in the tree when my ToggleButton is "checked" or "pressed". How does the ToggleButton know when to disappear for items that have no children?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 12 Oct 2012, 01:23 PM
Hi Jeff,

 Could you please elaborate more on your scenario? Is this actually the desired scenario :
How does the ToggleButton know when to disappear for items that have no children?
ToggleButton placed only on the RadTreeViewItems that have children ? If it is something similar you can have different HeaderTemplates for the items and use the RadTreeView's ItemTemplateSelector. You can read more about it in this help article. The button in the template may change a ViewModel's property bound to the Visibility of other control in the HeaderTemplate.

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TreeView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or