PDA

View Full Version : Control drop status when using TreeViewDragDrop?



timmc_basis
11 Feb 2013, 12:33 PM
I'd like to have a callback that can tell the TreeViewDragDrop plugin when the dragged element is over a valid drop zone, but the existing allowDrag/allowDrop flags aren't precise enough -- I need to actually inspect record data. How do I go about doing this?

(Do I need to reimplement the tree ViewDropZone and the plugin?)

evant
11 Feb 2013, 1:20 PM
If you grab the 4.2 beta, there's a new example that demonstrates this:

http://cdn.sencha.com/ext/beta/4.2.0.265/examples/tree/custom-drop-logic.html

Hope it helps.