I usually do this by handling the dragEnter, dragOver etc. events of the AdvancedDataGrid itself. In the processing I determine which item is being dragged over via the event properties.

hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



loc_tran106 wrote:

I have an adg that contains hierarchal data from an xmllist. What is
the correct class to extend so that I can listen in on dragevents?

The below class doesn't fire on nodes with children :(

Thanks guys...

-L

package classes
{
import
mx.controls.advancedDataGridClasses.AdvancedDataGridGroupItemRenderer;
import mx.events.DragEvent;

public class ADGIR extends AdvancedDataGridGroupItemRenderer
{
public function ADGIR()
{
super();
this.addEventListener(DragEvent.DRAG_ENTER,dragEnterHandler);
}

private function dragEnterHandler(e:DragEvent):void {
trace('ADGIR drag enter');
}

}
}

Reply via email to