PDA

View Full Version : Drag&Drop in V3.0



SeaSharp2
22 Nov 2008, 5:03 AM
I am starting a new Ext based project that will utilize Ext drag & drop between two Ext.DataViews and also drag & drop within a DataView.

Are there any pending V3.0 enhancements to D&D that would change how I implement the solution? Or I am safe to code a solution using the D&D building blocks in Ext 2.2?

Animal
22 Nov 2008, 5:05 AM
The classes are the same right now in SVN. Of course I'm not in the development loop, but I can't see any breaking changes being put in now.

You are planning to use the Ext.ux.DDView extension?

SeaSharp2
22 Nov 2008, 1:01 PM
You are planning to use the Ext.ux.DDView extension?
Thanks Nige. I have no clear plan on what DD classes to use as yet but DDView looks good. After some searching I found the following external link to your DDView implementation, is this the best source code copy to study?

http://trac.mapfish.org/trac/mapfish/browser/sandbox/camptocamp/MapFishExt22/client/mfbase/ext/examples/multiselect/DDView.js?rev=964

Does DDView pre or post date your drag and drop implementation in the patient/hospital ExtJS gallery?

Here is what I need:



DataView that renders from an in-memory data store.
Drag and drop within the same DataView.
Accept drop events from another drag only image tool bar that is also a DataView.
Ability to pop a Confirm/Cancel dialog box during a mouse button up drop event.


Nice to haves are:



Multi cell select and DD of a multi selected element group.
Mini visual impression of the dragged element image (or element group) in the drag proxy.
Auto drag scrolling to hidden areas of the DataView.

Animal
22 Nov 2008, 3:23 PM
I can post up the latest version of the DDView that I use on Monday.

Meanwhile the example at http://extjs.com/deploy/dev/examples/dd/dragdropzones.html is quite helpful with good comments.

evant
22 Nov 2008, 3:25 PM
There's currently no plans for major changes in the DD library to maintain backwards compatibility.