PDA

View Full Version : How to remove the DrapDrop about Gantt



hejian3232
12 Jun 2011, 8:00 PM
Hello,

I have write a DrapDrop method for Gantt by myself.
But ,it can't be executed.

Because , the Gantt has defalt DragDrop method.
How to execute myself DragDrop?

I think remove the DragDrop of Gantt is a good idea!
But I don't know how to do it.

hejian3232
14 Jun 2011, 7:12 PM
Now , I know how to do it.

The source :



List<ComponentPlugin> pluginLst = gantt.getPlugins();

for (ComponentPlugin componentPlugin : pluginLst) {

if(componentPlugin instanceof TreeReorder) {

pluginLst.remove(componentPlugin);
break;
}
}