PDA

View Full Version : 1.2.3 - Drag and Drop from ListView to Tree



rodeoclown
19 Feb 2009, 10:46 PM
I just upgraded GXT to 1.2.3 (from 1.2.1), and my drag and drop functions are no longer working.

I previously had set up a drag from one of two listViews (using ListViewDragSources) to a tree (TreeDragTarget), and was able to drag and drop items in the list into the tree (via the handleAppendDrop method).

Since upgrading, I get a 'no drop' icon everywhere and can no longer drop the items onto the tree.

I tried another widget where I used to be able to drag from the same two lists onto a a third list, and it is experiencing the same problem - I can't drop items onto it.

Has anything changed with DND that I should be aware of in order to get this working?

Thanks in advance

rodeoclown
22 Feb 2009, 2:48 PM
I have just found this affects all my DND code. I have another section of code with a ListView to ListView drag that works in 1.2.1, but on upgrading to 1.2.3 I can no longer drop.

I've tried putting a listener on the drop target, and it's not getting any events at all.

Is there a changelist I can check to see what has changed?
(not just the release notes)

rodeoclown
22 Feb 2009, 3:14 PM
One final note - I think all DND is broken, I just put the basic List to List example into our app (on its own panel) and ran it, and I can't drop anything with it either.

sven
22 Feb 2009, 3:23 PM
http://extjs.com/explorer/#basic

For me DND works very nice. Also it works quite well in all my applications. Is there some code in your app that might brake it? Have you tried one simple application?

rodeoclown
22 Feb 2009, 3:30 PM
Hi Sven,
It works fine in the explorer demo, and I tried copying the code from the List to List (http://extjs.com/explorer/#listtolist) demo, and it doesn't work. I can start dragging, but the drop targets aren't allowing me to drop anything in (in fact it looks as though they aren't even registering that there is an object over them at all).

It's been working great for a while, but I upgraded the gxt.jar, and it broke. That is the only change I have made, so I assume there is a difference in how DND is being handled. It's not necessarily a bug in GXT, but something has changed that has broken my working code.

I'd really like to find out what it is, I don't want to have to roll back, as there were improvements in 1.2.3 which have helped out elsewhere in my codebase.

rodeoclown
22 Feb 2009, 3:43 PM
I just rolled back to 1.2.1 to make sure the simple demo still worked, and it works fine, so it's definitely something in the updated jar.

The event.target in the DND onDragMove wasn't being set in the new version, but it is being set in the old.