Is there a property of Telerik RadTreeView to collapse all children when a parent is collapsed?
I am using MVVM for a WPF ap开发者_开发技巧p and I have a Telerik RadTreeView, and when I collapse a parent, I'd like to recursively collapse all children (and their children, etc) so that when I expand the parent again, I don't see any grandchildren, because all children are collapsed. Is there a property of the RadTreeView that Can accomplish this, or any relatively easy alternative way? Thanks.
Stumbled across this question searching for some other RadTreeView related topics.
Based on the current Telerik RadTreeView Documentation:
When you need to expand or collapse all the items recursively for a given item use the ExpandAll() and CollapseAll() methods of the RadTreeViewItem respectively. When you need to expand/collapse all the nodes in the tree use ExpandAll() and CollapseAll() methods of the RadTreeView.
精彩评论