PDA

View Full Version : [FIXED] RC2 - Drag and Drop TreeGreed broken



fother
1 Jul 2009, 8:27 AM
try drang and drop.. always you will see the window "Just-In-Time Debugging"
"Just-In-Time Debugging" its a Microsoft program that allow debug javascript.

tested in hosted mode win vista



public class Gxt implements EntryPoint {

public void onModuleLoad() {

Folder model = TestData.getTreeModel();

TreeStore<ModelData> store = new TreeStore<ModelData>();
store.add(model.getChildren(), true);

ColumnConfig name = new ColumnConfig("name", "Name", 100);
name.setRenderer(new TreeGridCellRenderer<ModelData>());

ColumnConfig date = new ColumnConfig("author", "Author", 100);

ColumnConfig size = new ColumnConfig("genre", "Genre", 100);

ColumnModel cm = new ColumnModel(Arrays.asList(name, date, size));

TreeGrid<ModelData> tree = new TreeGrid<ModelData>(store, cm);
tree.setBorders(true);
tree.setSize(400, 400);
tree.setAutoExpandColumn("name");
tree.setTrackMouseOver(false);

ContentPanel cp = new ContentPanel();
cp.setBodyBorder(false);
cp.setHeading("TreeGrid");
cp.setButtonAlign(HorizontalAlignment.CENTER);
cp.setLayout(new FitLayout());
cp.setFrame(true);
cp.setSize(600, 300);
cp.add(tree);

new TreeGridDragSource(tree);

TreeGridDropTarget target = new TreeGridDropTarget(tree);
target.setAllowDropOnLeaf(true);
target.setAllowSelfAsSource(true);
target.setFeedback(Feedback.BOTH);

RootPanel.get().add(cp);
}
}

fother
1 Jul 2009, 9:58 AM
this problem appears too in RC2

fother
7 Jul 2009, 2:14 PM
you can close this issue.. in release work fine