开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜