How to expand a set of nodes automatically in AjaxTree
How to expand a set of nodes automatically in AjaxTree
- Subject: How to expand a set of nodes automatically in AjaxTree
- From: Helmut Schottmüller <email@hidden>
- Date: Mon, 1 Sep 2008 14:18:49 +0200
Hi,
I would like to store the last state of my AjaxTree to recreate it
with the same collapsed/expanded nodes as before.
I've overwritten the setExpanded method of the AjaxTreeModel class to
store all expanded tree nodes in a session. When the page is reloaded,
I want to expand the nodes from the session. Is there any method which
I have to call to force AjaxTree to "reload" and to display the
expanded nodes?
I tried expanding the nodes programatically in the constructor of the
AjaxTreeModel, but this didn't force the tree to show the open nodes.
Setting "allExpanded = true" for the AjaxTree opens all the nodes to
open automatically. What am I doing wrong if I want to open just a few
nodes automatically?
Regards,
Helmut
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden