PDA

View Full Version : Reorder Items in Dataview(Ext.view.View)



lord_of_php
23 Aug 2011, 1:10 PM
Hi,

I'm using a Dataview (Ext.view.view) for displaying a gallery of images. It is possible to "reorder" via drag and drop the items in this Component? I have been looking for a example in the Sencha Example page, but I can't find something similar.

Thanks by your help

Animal
23 Aug 2011, 3:32 PM
Not out of the box.

You will have to write a plugin which uses DragZone and DropZone.

The DrpoZone will have to cleverly see whether the drop point is before or after the "over" element, and insert some kind of drop indicator.

It's complex stuff.

jay@moduscreate.com
24 Aug 2011, 11:30 AM
This example should be able to get you started.
http://extjsinaction.com/examples/chapter14/dnd_with_dataviews_multiselect.html

skirtle
27 Aug 2011, 1:49 AM
@jgarcia

I'm getting a 404 for the JSON-P when I follow your link.


GET http://extjsinaction.com/examples/chapter12/getEmployees.php?_dc=1314438198875&callback=stcCallback1001 404 (Not Found)

ondra.cz
27 Oct 2013, 4:15 AM
Hello guys,
I'm trying to make the same functionality like Lord-of-PHP did. To have the posibility to reorder items in dataview via drag & drop.
Has anyone any example to show?