I finally figured it out....

Here's the solution....

               use namespace mx_internal;
var dropData:Object = currentSubgroups.mx_internal::_dropData; var subgroupName:String = dropData.parent.GroupLabel;

This gives me the label of my parent node which I can then use to write the data back to my db.

Wahoo!
Adrian

Adrian Williams wrote:

Thanks Alex...this is close but not going to work as is...it provides the drop index relative to the currently displayed ADG...so if the first 2 nodes are closed and the 3 is expanded and the row is dropped into the second position of the 3rd node, then the index is 4, which then leaves me still clueless on how to identify the node I am in.

In looking through all of the possible datapoints of the ADG, I've found what I am looking for but it is in the internal _dropData area...and I haven't found any good flex 3 examples out there on how to access the internal namespace for the ADG....there's a lot of flex 2 stuff for plenty of other container and lists, but not the ADG....and it looks like the import of the core.mx_internal is no longer needed so am wondering about the rest of the manipulations I've found...

So long and short...

How do I access the _dropData internal values? I've tried the following with error:

                var ns:Namespace = mx_internal;
                var dropData:Object = currentSubgroups::ns._dropData;
var subgroupName:String = dropData.parent.GroupLabel;

the error being that my currentSubgroups is the id for my ADG which conflicts with my associating it to a namespace.
Keeping fingers crossed...
Adrian



Alex Harui wrote:

I don't have time to see if ADG overrode this, but for regular DG, you could call calculateDropIndex

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Adrian Williams
*Sent:* Monday, November 03, 2008 2:55 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Identifying which node is the drop target on Grouped ADG

Hi All,

Having a fun one here...I have two ADG's that each have a list of individuals, in a hierarchical grouping collection and have drag drop enabled between the two ADG's. Basically the grouped ADG on the left shows people grouped by which project they are in...the one of the right shows people who haven't been added to any project. The user is allowed to drag a person from the unassigned ADG on the right and drop them into a specific group (node) on the left. The challenge I am having is identifying the drop target on the grouped collection. Have tried everything from looking at event.currentTarget to checking the underlying dataprovider for the ADG to even assigning specific listeners to the "grouped" ADG all to no avail. I can identify the information about the individual being moved into the groups via the dataprovider.selectedItem just fine. How in the world do I identify which node of the grouped collection the person is being dropped into as well as their drop index?

Any help here is appreciated
Adrian

Reply via email to