View Full Version : [CLOSED] DataView to DataView Drag and Drop

May 10, 2012, 6:12 PM

I've been looking for an example of drag and drop from within the same dataview. My scenario is that I have a DataView with various items in, some of them are folders. I'd like to be able to pick up an item/folder and drag it to another folder in the same DataView.

Is this possible? I've looked into using ext:DropZone but not sure if I'm on the right track as the DataView has ext:DataViewDraggable plugin for dragging but nothing similar for dropping?

Any help much appreciated.

May 10, 2012, 8:19 PM

I think you are on the right direction to use DropZone.

As far as I can understand the DataViewDraggable plugin just defines DragZone on DataView. You can use it.

But I have never met any implementations of DropZone for DataView. So, you have to implement it.

The following example should help you to start.

Repeat myself, DragZone is, actually, already implemented in the DataViewDraggable plugin. So, I would start to develop DropZone. Further, if you will need some additional functionality of DragZone, you will be able to override/extend the DataViewDraggable plugin. Or just implement DragZone basing on that plugin.