for(var each in x.childNodes){
if(x.childNodes[each].attributes.isOpen){
var t = tree.getDisplayIndex(x.childNodes[each]);
tree.setIsOpen(tree.getNodeDisplayedAt(t), true, false, false);
}
if(x.childNodes[each] != undefined){
this.recurseAndOpen( x.childNodes[each], tree );
}
}
}
Maybe you can use this....... store --> .attributes.isOpen
every time a node opens or closes... on refresh fill the tree with new
data. and use the old structure as a lookup tree to reopen the nodes...
--- In [email protected], "Karl Johnson" <[EMAIL PROTECTED]>
wrote:
>
> I have tried many different methods without much success. I need to be
> able to maintain, or at least give the appearance to the end user that I
> have maintained, the state of the tree after a refresh of the
> dataprovider (meaning I set the dataprovider an xml result of a
> webservice every x minutes).
>
> Has anyone successfully accomplished this? I tried popluating an array
> of the indexes of all displayed nodes, and then after refresh, looping
> through the state array and calling setIsOpen and passing in
> getTreeNodeAt(indexStoredInArray), etc... But that only works with the
> top level.
>
> Any suggestions? Any help is very much appreciated.
>
> Thanks,
> Karl
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

