PDA

View Full Version : refresh async tree after uptade



jescot
30 Jun 2008, 1:49 AM
Hello,

I have an async tree with a context menu to add, edit and delete items. These actions calls a service and when they finish I want to refresh my tree.
My problem is that i'm not able to show my tree expandes as it was with the changes made.
I'm trying something like this:

private void refresh(TreeItem parent){
loader.loadChildren((StringModelData)parent.getData());
tree.expandPath(parent.getPath());
}

but it takes no effect.

Could someone help me? Thanks in advance.

Juan.

jescot
30 Jun 2008, 1:59 AM
I want to move this post to Help forum but i don't know how, sorry...

sdc
30 Jun 2008, 8:53 AM
mmm. getData() is deprecated. Try with getModel()