PDA

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



paulc
May 10, 2012, 6:12 PM
Hi,

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.

Daniil
May 10, 2012, 8:19 PM
Hi,

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.
http://examples2.ext.net/#/DragDrop/Advanced/Example3/

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.