Hi,
I am having problems with my TreeGrid since updating to SmartGWT 2.0, and couldn't find any thread with the same problem.
In my application I have a TreeGrid showing the contents of a
com.smartgwt.client.widgets.tree.Tree
If the tree needed more data, it used GWT-RPC and displayed the data in the TreeGrid. This does not seem to be possible anymore.
I read http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/TreeDataBinding.html and what I understand from this document is:
If I use a Tree Object as parameter in the Method setData() from the TreeGrid, then the TreeGrid is only able to show what is already loaded into the tree, but nothing that adds later?
At the moment I only load the root node and add it to the tree. Then I initialize the TreeGrid and use this tree when calling setData().
Later on, when more nodes a loaded into the tree, they are not displayed, even though when I call
it prints the correct amount of children. So my question is, if there is a way to use a Tree as a DataSource for a TreeGrid, and also show nodes, that are loaded into the tree after creating the TreeGrid?
Thanks in advance for your answers. If necessary, I'll answer any questions as quick as possible, but you have to be aware I'm in the timezone of Germany.
I am having problems with my TreeGrid since updating to SmartGWT 2.0, and couldn't find any thread with the same problem.
In my application I have a TreeGrid showing the contents of a
com.smartgwt.client.widgets.tree.Tree
If the tree needed more data, it used GWT-RPC and displayed the data in the TreeGrid. This does not seem to be possible anymore.
I read http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/TreeDataBinding.html and what I understand from this document is:
If I use a Tree Object as parameter in the Method setData() from the TreeGrid, then the TreeGrid is only able to show what is already loaded into the tree, but nothing that adds later?
At the moment I only load the root node and add it to the tree. Then I initialize the TreeGrid and use this tree when calling setData().
Later on, when more nodes a loaded into the tree, they are not displayed, even though when I call
Code:
System.out.println(treeGrid.getTree().getChildren(root).length);
Thanks in advance for your answers. If necessary, I'll answer any questions as quick as possible, but you have to be aware I'm in the timezone of Germany.
Comment