File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes How to expand tree in gwt? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "How to expand tree in gwt?" Watch "How to expand tree in gwt?" New topic
Author

How to expand tree in gwt?

SanjayR Jain
Ranch Hand

Joined: Mar 05, 2009
Posts: 43
I a using GWT 2.3.In which I am using import com.google.gwt.user.client.ui.Tree. I want to show tree expanded always.For that I did below code for every tree item

But it is not working. I am not getting how to expand tree. Please help me out.Thanks in advance
SanjayR Jain
Ranch Hand

Joined: Mar 05, 2009
Posts: 43
I found the solution.First Need to add child then need to set state true.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10255
    
    8

Crossposted at http://stackoverflow.com/questions/7330398/how-to-expand-tree-in-gwt

@Sanjay
After more than 2 years at the Ranch, you would be expected to BeForthrightWhenCrossPostingToOtherSites


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
SanjayR Jain
Ranch Hand

Joined: Mar 05, 2009
Posts: 43
@Maneesh Godbole Thanks for this information.I have already posted answer as I found it.
 
wood burning stoves
 
subject: How to expand tree in gwt?