How to expand All nodes in timahawk tree2?

Hi,Can anyone please tell how to expand and collapse all nodes in a tomahawk tree2 on click of a command button. My tree has client side toggle.Thnx,Sanjeev.
[185 byte] By [SanjeevGoura] at [2007-11-26 15:34:51]
# 1
You have to create binding to HtmlTere and invoke its expandAllI() method. Look at this sample: http://www.irian.at/myfaces/tree2ExpandAll.jsf
amitteva at 2007-7-8 21:52:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thank you very much for your help. I got it working. One more problem I have that I didn't find any method to collapse all nodes in the tree. Could you please suggest some idea to do that?Thanks,Sanjeev.
SanjeevGoura at 2007-7-8 21:52:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...