• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to expand tree in gwt?

 
SanjayR Jain
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution.First Need to add child then need to set state true.
 
Maneesh Godbole
Saloon Keeper
Posts: 11177
14
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
SanjayR Jain
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Maneesh Godbole Thanks for this information.I have already posted answer as I found it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic