Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NodeExpansion Handler - Collapsing Nodes

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
CA
Hi Guys

I want to make my tree (FTree component) so that when you open a node, all other open nodes close. I thought it would be fairly simple, set up a nodeExpansionHandler that either

1 - makes a global variable remembering the node that is open and then closing that variable the next time it is invoked. or

2 - cycling through all the nodes and closing all that aren't the one that was opened.

However, I can't find any method or property of a node that lets you close it. I try to use the
Code:
setIsOpen
method, but that just puts the closed icon beside the node, but doesn't actually collapse the branches.

Any suggestions/links?

Thanks

B
 
you have probably done this already but i would edit the component and find the code that allows manual collapse (by clicking). it must be a function. the methods used in that function may well provide the clue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top