Hi,
I'm having a serious problem with AdvancedDataGrid and
HierarchicalCollectionView. I have following structure on ADG (whose
datasource is hierarchical data):

ContainerObj1
-ChildContainerObj1
--ChildObj1
--ChildObj2
-ChildContainerObj2
--ChildObj3
--ChildObj4
-ChildContainerObj3
--etc....

ContainerObj1's children property is a sorted ArrayCollection. If I scroll
the ADG so that ChildContainerObj1 and it's children are not visible and
programmatically add new ChildContainerObj4 (it has it's own children too!)
by calling

ContainerObj.children.addItem(ContainerObj1);

then I get the following Error below. If I choose to Continue it works ok.
I've tried dozens of ways to get aroung this but nothing seems to work. If
ADG is not scrolled and ContainerObj1 is visible, then it works without
errors. This starts to seem like a bug to me, any ideas how to fix this or
how to workaround it or should I file a bug?

Error: Bookmark no longer valid.
    at
ListCollectionViewCursor/seek()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:2055]
    at
mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionViewCursor.as:1116]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
mx.collections::HierarchicalCollectionView/nestedCollectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionView.as:1202]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
mx.collections::ListCollectionView/dispatchEvent()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:833]
    at
mx.collections::ListCollectionView/addItemsToView()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:931]
    at
mx.collections::ListCollectionView/listChangeHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1051]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
mx.collections::ArrayList/internalDispatchEvent()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:510]
    at
mx.collections::ArrayList/addItemAt()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:311]
    at
mx.collections::ListCollectionView/addItemAt()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:501]
    ...

Reply via email to