Collapse All Nodes By Default in C#

Dec 9, 2013 at 8:54 AM
How can I collapse all nodes on the first graph creation, so that I can allow the users to click to see the inner nodes.

Thanks in advance.
Dec 9, 2013 at 4:07 PM
After populating your graph but before calling NodeXLControl.DrawGraph(), call the following method for each group you want to collapse:
NodeXLControl.CollapseGroup(String groupName, Boolean redrawGroupImmediately)
The redrawGroupImmediately argument should be false.

-- Tony
Dec 9, 2013 at 4:17 PM
HI Tony,
Thanks a lot and it worked very well.

I wonder if I can have sub groups, so that while I expand parent nodes, I only see the immediate children but not the grand children expanded. Later when I click on children it is to expand grand children. A step by step drill down.
could you please tell me how can I achieve this.

Dec 9, 2013 at 5:53 PM
Edited Dec 9, 2013 at 5:54 PM
NodeXL does not support nested groups, or subgroups as you call them. There is only one group level.

-- Tony
Dec 10, 2013 at 6:40 PM
Hi Tony,
May be this can be considered in upcoming Releases.