View Full Version : DragDrop zone example - how to programmatically change the drop zone contents ?

13 Jun 2011, 12:41 PM
Hello there,


That example shows something I'd like to accomplish. I'd use the DragDrop features to populate the "Drop Patient Here" boxes, but I'd also want to be able to do it programmatically (using JavaScript only).

So far, I've been told to use Ext.get, Ext.query or Ext.select to find the according node(s) and then update them, but I can't figure out how.

Let's say I want to edit the Saint Bartholomew hospital record, the record itself doesn't know about the html (el). The only place I can find any html at all is the grid itself, using hospitalGrid.getView().tpl : from there I can see the template original html, but the row from Saint Bartholomew. If I drag and drop a new element in the zone, I can't find it anywhere using JavaScript only.

Any hint ?

Thanks a lot,


13 Jun 2011, 12:46 PM
but NOT the row from Saint Bartholomew. (sorry)