PDA

View Full Version : Sortable DataView



flumueller
26 Nov 2007, 12:29 AM
Hello there
Did someone written an extension for the DataView Demo which make it sortable?
It would be great if i'd have the same functionality as in the ImageOrganizer Demo (Drag&Drop between DataView and Tree) but it should also be possible to sort the pictures inside the DataView..

Best wishes

F. Miller

dantheman
26 Nov 2007, 8:07 AM
The store used by a dataview is sortable.

Just check the docs under Ext.data.Store,
the sortInfo config (3d from last config option).

I haven't played with the image organizer demo,
but it should be straightforward to sort the store
info, given an understanding of the records...

--dan

s.andringa
19 Mar 2008, 9:02 AM
I am working on similar functionality. However I need TreeNodes to be able to be dragged into a panel/column, in which the order of those nodes can be altered using drag 'n drop, similar to the portal example (http://extjs.com/deploy/dev/examples/portal/portal.html).
To be more specific: The tree contains optional side boxes that can be inserted into the left or right column of a web page's layout.

I was thinking of using the DataView class or the Portal class (from the example) (or a mixture of those) for the columns.

Any thoughts? Or can anyone point me in the right direction?