There is a bug associated with inserting a value into the tree, but calling refresh() on the ListDataProvider should workaround the issue. Do you have any more info that might help debug it?
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. Not currently. You have to call refresh() on all the ListDataProviders. Thanks, John LaBanca [email protected] On Mon, Nov 1, 2010 at 12:46 PM, Rodrigue <[email protected]> wrote: > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
