I have two grids(source and destination) and I am using drag-and-
drop to populate the destination grid.

I have this working and items are "moved" (sort-of) over to the 
grid. During debugging, I browsed to see the items available in the 
dataProvider for the grid. Items are there but the length of the 
dataProvider is = 0 ??


So, destinationgrid.dataProvider has the following items:


+0 with subfields
+1 with subfields
+2 with subfields

Length should be 3. It shows 0. Any ideas?

Here is my dragdrop function
==============================================
function doDragDrop(event) {

var match_count:Number = 0;
doDragExit(event);

var items = event.dragSource.dataForFormat("items");
var destination = event.target
var exist_items = destination.items;
var dropLoc = dest.getDropLocation()

items.reverse()

for(var i = 0; i < items.length; i++) { 

destination.addItemAt(dropLoc, items[i]); 

}

}


Alex






Reply via email to