PDA

View Full Version : DragDrop Help



INeedADip
11 Aug 2007, 6:11 PM
I've searched the forums several times and can't find a simple example of drag drop. What if I have two divs and I want them to be draggable into another div?

I've tried creating a single DropTarget and two DragSource's, I've tried registering them with the DragDropMgr.....I'm at a loss. I don't get any errors, but nothing happens.

Is there a simple example out there? I've read the documentation but I get a little lost. There are like 10 different objects within Ext.dd and I'm unsure which two to use.

Any help would be greatly appreciated.

cdomigan
18 Sep 2007, 6:10 PM
I too would be interested in any simple examples of this.

aconran
18 Sep 2007, 6:35 PM
Jozef Sakalos aka Saki has recently posted 5 excellent tutorials in the wiki section on implementing Drag and drop by using Ext.

Here are the links
http://extjs.com/learn/Tutorial:Custom_Drag_and_Drop_Part_1
http://extjs.com/learn/Tutorial:Custom_Drag_and_Drop_Part_2
http://extjs.com/learn/Tutorial:Custom_Drag_and_Drop_Part_3

http://extjs.com/learn/Tutorial:Advanced_Custom_Drag_and_Drop_Part_1
http://extjs.com/learn/Tutorial:Advanced_Custom_Drag_and_Drop_Part_2

Aaron