Hello,
I have an ajax link and a tree located at the same page. When I click on
the link I want the tree to expose a specific item and scroll the item
into view.
Exposing the item works well using getTreeState().expandNode(childNode);
and after adding the tree component to the AjaxRequestTarget it displays
properly.
I append javascript code to the AjaxRequestTarget to scroll to the
expanded item, but this only works if the tree is already completely
expanded. Otherwise, the scroll location is not correct.
I assume this is because the scroll js command is issued before the tree
is completely expanded. Is there any possiblity to wait for the tree to
be displayed and then issue the scroll command? Would overriding
onAfterRender() help on this issue? How can I get an AjaxRequestTarget
in onAfterRender()?
I would be happy for any reply that points me into the right direction
to solve this problem.
Best,
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]