Hello,

there seems to be a problem (or at least I am having this problem) with 
drag & drop involving virtual widgets.

The current architecture assumes that it is enough to store the 
sourceWidget and the destinationWidget during the drag session. However, 
with virtual widgets this is not enough - we need to store the internal 
information on what node/row/cell etc. has been dragged.

Of course, we can send it with the drag event during dragStart:

myVirtualTree.addEventHandler("dragStart",function(event){
            // get drag source
            node = this.getDataModel().getSelectedNodes()[0];
            if ( node && node.type =="staffschedule.types.Person" )
            {
                event.addData(node.type, node);
                event.addAction("move");
                event.startDrag();
              }
}

but if I use the "supportsDrop" method on the destination widget, I have 
no access to the event data, because the dragCache object that is sent 
to the supportsDrop function does not contain the drag data. So I am 
left to attaching the data to the source widget and retrieving it 
manually inside the supportsDrop function. Or is there a way to get the 
drag data through qx.event.handler.DragAndDropHandler ?

Thanks,

Christian

  

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to