What does your delete method look like? Try adding some IF statements
to check for null or undefined values before you run the delete. If
it's null or undefined, do a return. 

--- In flexcoders@yahoogroups.com, Adrian Williams <[EMAIL PROTECTED]> wrote:
>
> All,
> 
>     I could really use some help in identifying where even to begin 
> looking to figure out what's causing this problem.
> 
>     I have a ADG that is displaying a GroupingCollection. 
> 
>     I have an application control bar that has a "trash" image.  A user 
> can drag a node from the ADG and drop it in the trash to delete the
node 
> and all it's children. 
> 
>     When you initially get into the application and drag the first node 
> of the tree to the trash, the delete fires correctly and without error.
> 
>     When you try to drag the (now) first node of the tree into the 
> trash, I get the following error:
> 
> TypeError: Error #1010: A term is undefined and has no properties.
>     at 
>
mx.controls::AdvancedDataGridBaseEx/displayToAbsoluteColumnIndex()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:7166]
>     at 
>
mx.controls::AdvancedDataGridBaseEx/commitEditedItemPosition()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4426]
>     at 
>
mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1807]
>     at 
>
mx.controls::AdvancedDataGrid/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5924]
>     at 
>
mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3071]
>     at 
>
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
>     at 
>
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
>     at Function/http://adobe.com/AS3/2006/builtin::apply()
>     at 
>
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
>     at 
>
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
> 
>     This only errors when manipulating the second time you try to
delete 
> the first node.  You can delete any of the other nodes, repeatedly, 
> without error.  I suspect there is some kind of out of index problem 
> happening but the dump gives me no ideas on where to look.
>    
>     Anyone?!
> 
> Thanks,
> Adrian
>


Reply via email to