Hi all,
I'd like to limit which DataGrids another DataGrid will receive
drag/drop data from, by defining a drag/drop data format. In the
test code below, the data and format seem to get added to the
DragSource, but are not seen in the doDragEnter function.
Instead, the data is found under the default "items" format in
doDragEnter.
Any suggestions as to what I'm missing?
// ds.formats will return 'userList'
function dragIt(event, data) {
var ds:DragSource = new DragSource();
ds.addData(data, 'userList');
DragManager.doDrag(event.target, ds);
}
// event.dragSource.formats will return 'items,source'
function doDragEnter(event, format) {
if (event.dragSource.hasFormat(format)) {
event.handled = true;
}
}