• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to expand a tree node in AjaxTree
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to expand a tree node in AjaxTree


  • Subject: Re: How to expand a tree node in AjaxTree
  • From: Freddie Tilley <email@hidden>
  • Date: Tue, 10 Jun 2014 13:11:48 +0200

Hey,

I’m not sure if you still need an answer, but I just came across the same issue myself. The way I got it working was by subclassing AjaxTreeModel and overriding setRootTreeNode. All the expanded/collapsed nodes get reset when a different rootTreeNode is set.

@Override
public void setRootTreeNode(Object rootTreeNode) {
if (rootTreeNode != rootTreeNode()) {
super.setRootTreeNode(rootTreeNode);
// expand tree nodes here
}

}


—
Freddie

On 12 Dec 2013, at 09:52, Butchi Reddy Velagala <email@hidden> wrote:

Hi All,

      Can any one help me to expand AjaxTree upto a certain node .

* I am using Delegate in AjaxTree.

* i am trying to do this with the help of  AjaxTreeModel.setExpanded() . There was some progress, but i got 2 labels for each node ( one is with + and other is -) . Suggest me where i have to place  this method.


Thanks in Advance,
Butchi Reddy Velagala
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
  • Prev by Date: Re: Wonder addition - updated openbase plugin
  • Next by Date: Right Way to use jQuery
  • Previous by thread: Re: Vagrant, Docker
  • Next by thread: Right Way to use jQuery
  • Index(es):
    • Date
    • Thread