Monday, November 1, 2010

change parent of a node in a CellTree

Hi!

did someone already modify successful a celltree's structure
programmatically? I want to change the parent of a node
programmatically and see the changes displayed on the screen. What I
do now is the following:
• remove the considered node's value from the old parent's
ListDataProvider using ListDataProvider#getList()#remove ().
• add the considered node's value to the new parent's ListDataProvider
using ListDataProvider#getList()#add()
• call ListDataProvider#refresh on both old and new parent
ListDataProviders.

I expected to see the old node move from the old to the new parent.
But what occurs instead, is that the node I wanted to move just
disappear from the tree.
What can be the problem?

And I would also like to know, if there is a way to tell to a CellTree
to redraw itself because the backed data have changed.

Thanks for any help.
Rodrigue

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment