Sunday, April 4, 2010

Beta1 to Beta2 - ADG openItems Problem

Hi,



I just switched from Beta 1 sdk to Flex Builder Beta 2 sdk
and I am finding that code that previously compiled is now
returning errors. The error in particular is:





1119: Access of possibly undefined property openItems through
a reference with static type mx.printing:PrintAdvancedDataGrid.







Has this variable been renamed/removed from the ADG? The
language reference does not reflect this.

Beta1 to Beta2 - ADG openItems Problem
For reference, I was using the openItems property to make
sure I printed only the open parts of my grouped data on my
ADG.Beta1 to Beta2 - ADG openItems Problem
openItems in now moved to HierarchicalCollectionView. It can
be accessed easily as adg.dataProvider.openItems
Hi Sreenivas,



Thanks for the reply, unfortunately I am not using a
HierarchicalCollectionView as my dataprovider but a
GroupingCollection which is not a child of
HierarchicalCollectionView. This data type does not have an
openNodes option. How do I go about switching from
GroupingCollection to HierarchicalCollectionView?
When the user sets the dataprovider the grouoing collection
will get converted to HCV internally. Hence, the above mentioned
solution should work even for GC data provider.

No comments:

Post a Comment