How about using something like this:
TreeItem selected = tree.getSelectedItem();
TreeItem parent = selected.getParentItem();
while(parent!=null)
{
parent.setState(true,false);//don't fire events
parent = parent.getParentItem();
}
On Nov 18, 7:16 am, gregor <[EMAIL PROTECTED]> wrote:
> see:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=1783&can...
>
> the answer is supposed to be:
>
> myTree.ensureSelecteditemVisisble();
>
> but it doesn't always work - see bug report work around for how to
> solve that.
>
> regards
> gregor
>
> On Nov 18, 7:16 am, yongwei <[EMAIL PROTECTED]> wrote:
>
> > i got the same issue.
> > you can use gwt-ext to have this feature
>
> > On Nov 17, 1:29 pm, ArunDhaJ <[EMAIL PROTECTED]> wrote:
>
> > > Hi All,
> > > I've a tree with some set of TreeItems within it. When I
> > > programmatically set a TreeItem as selected, the Tree is not expanding
> > > its view till the selected TreeItem. How can I achieve this behavior ?
> > > I'm using GWT1.4.62.
>
> > > Thanks in Advance !!
>
> > > Regards,
> > > ArunDhaJ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---