nihad640 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Tree grid does not update with dynamic data #643

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1.Please refer http://forums.smartclient.com/showthread.php?t=7044

What is the expected output? What do you see instead?
Tree grid nodes should be dynamically refreshed even after the tree is created.

[code]
offersGrid = new ListGrid()

            offersTree = new Tree();
            offersTree.setModelType(TreeModelType.CHILDREN);
            offersTree.setNameProperty("Name");

            offersTree.setRoot(new PartsTreeNode("Root", "root", null, new PartsTreeNode("OFFER 1", "offer", null), new PartsTreeNode("OFFER 2", "offer", null)));

offersGrid.setData(offersTree);

//then later if we try this it doesnt refresh
final TreeNode[] children =new TreeNode[2];
//set nodes here

offersTree.addList(children, offersTree.getRoot());
                offersTree.reloadChildren(offersTree.getRoot());

[/code]

Smart gwt 2.4
Firefox

Original issue reported on code.google.com by sandeep....@gmail.com on 19 Dec 2011 at 5:28

GoogleCodeExporter commented 9 years ago
Please do not file issues unless you have a minimal, standalone test case 
demonstrating the problem.

Original comment by smartgwt...@gmail.com on 19 Dec 2011 at 8:57