PDA

View Full Version : Avoid children load when children allready loaded in TreePanel



zopinto
12 Aug 2010, 7:52 AM
Hi everyone !
I've met a little problem when trying to display children in an asynchronous tree : the treepanel make a request to server even if the children of the element were previously loaded on the server (I use a class that implements the treeModel interface) and I made:



TreeModel model = new ImplementationOfTreeModel();
model.add(child);
model.add(child2);
on the server side.
I tried to override the onExpand method in the TreePanel class, but some fields coming from the TreeNode class are private so I can't override this method.
Did someone met this probleme and/or have a solution ?
Thanks a lot !!!