package com.smartgwt.sample.showcase.client.draganddrop; import com.smartgwt.client.data.DataSource; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.tree.TreeGrid; import com.google.gwt.core.client.EntryPoint; public class TreeReparent implements EntryPoint { @Override public void onModuleLoad() { TreeGrid tree = new TreeGrid(); tree.setDataSource(DataSource.get("employees")); tree.setAutoFetchData(true); tree.setCanDragRecordsOut(true); tree.setCanAcceptDroppedRecords(true); tree.draw(); } }