Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid node repositioning issue

    Win7x64, Firefox 3.6.13, GWT 2.1.1, SGWT SC_SNAPSHOT-2011-02-03/LGPL Development Only (built 2011-02-03)

    Code:
        
    public void onModuleLoad() {
            final TreeGrid treeGrid = new TreeGrid();
            treeGrid.setWidth(1000);
            treeGrid.setHeight(400);
            treeGrid.setAutoFetchData(true);
            treeGrid.setCanReorderRecords(true);
            treeGrid.setCanAcceptDroppedRecords(true);
            treeGrid.setShowOpenIcons(true);
            treeGrid.setLoadDataOnDemand(false);
            treeGrid.setCanDrop(true);
            treeGrid.setDataSource(RestDataSourceFactory.createCategoryDS());
            treeGrid.setFields(new TreeGridField("_id"),
                    new TreeGridField("title", 500)
            );
            treeGrid.draw();
        }
    }
    It draws the following tree:
    -Root
    Child1
    Child2
    Child3

    The problem is, that if I try to reposition the Child1 node BELOW Child3, it actually appears ABOVE it. Anyone else seeing this behavior? Incidentally, http://www.smartclient.com/smartgwt/showcase/#tree_interaction_drag_reparent seems to behave correctly.

    regards,
    Andrius J.
Working...
X