Hi.

The ajax stuff is a bit new to me, so sorry if this is an obvious
question.

I'm trying to figure out how to get my change in my tree model to show
up on screen.

I want to be able to expand to and select a node from the tree based on
its value (determined elsewhere in the application).

I resolve the path of the node I want, grab any not-yet-resolved
children from the DB (my tree is large, so I only fetch my children as
required), and then I expand and select.

  final ITreeState treeState = getTreeState();
  final TreeNode[] path = node.getPath();
  for( final TreeNode nextNode : path )
  {
      treeState.selectNode( node, true );
      nodeExpanded( nextNode );
      nodeSelected( nextNode );
  }

  invalidateAll();


Maybe I do some unnecessary stuff above, I don't know. In any case,
after expanding and selecting the node in my model, the big thing for me
is to get that change to take effect.


Thanks for the help!

David




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to