Well, specifically it depends on the structure of your data, abstractly one
would use expandItem.

ExpandItem takes an object id. If you know the id of your object then you
just simply do tree.expandItem(objectid).

If you don't know the object id you'll need to find some way to identify it.
If you're dealing with custom hierarchical data then see if you can add an
ids to your objects and track the ones that you want to open. With xml it
should be pretty easy to find an e4x query find your object ids.

To understand how it works opening open some nodes and then looking at the
openItems property on your tree is helpful. Set a break point then click on
an item in the 'variable' view, then 'watch' it to see the details.

...paul

On 10/7/07, candysmate <[EMAIL PROTECTED]> wrote:
>
>   I need to expand specific branches in a tree component, while keeping
> their children closed.
>
> My tree does not have the root node shown. So if you take the root
> node as 0, I wish to expand nodes 1 while keeping nodes 2 (children)
> closed/collapsed. How can I do this please?
>
>  
>

Reply via email to