0 Replies Latest reply on Jun 22, 2011 5:06 AM by hidarikani

    AdvancedDataGrid.expandItem() fails when dataProvider is of type HierarchicalCollectionView

    hidarikani Level 2

      1. I pas an instance of HierarchicalCollectionView to the dataProvider of my AdvancedDataGrid

      2. The hierarchical data is displayed fine

      3. expandItem() fails miserably:

      TypeError: Error #1034: Type Coercion failed: cannot convert mx.collections::ArrayCollection@c9f6e81 to mx.collections.IHierarchicalCollectionView.
           at mx.controls::AdvancedDataGrid/isItemOpen()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGrid.as:4306]
           at mx.controls::AdvancedDataGrid/expandItem()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\controls\AdvancedDataGrid.as:4391]
      

      I'm using the HierarchicalCollectionView because it has the filterFunction property.