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
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.