I have following data:
var data: ArrayCollection = new ArrayCollection(
[
{ name: "ProductA", user: {login: "loginA", email: "emailA"} },
{ name: "ProductB", user: {login: "loginB", email: "emailB"} },
{ name: "ProductC", user: {login: "loginC", email: "emailC"} }
]
);
This array is a data provider for my AdvancedDataGrid:
<mx:AdvancedDataGrid dataProvider="{data}">
<mx:columns>
<mx:AdvancedDataGridColumn headerText="Product" width="55" dataField="name" />
<mx:AdvancedDataGridColumn headerText="User" dataField="user.login" />
<mx:AdvancedDataGridColumn headerText="Email" dataField="user.email" />
</mx:columns>
</mx:AdvancedDataGrid>
The problem is - AdvancedDataGrid does not displays properties of nested User object, but the simple DataGrid does. What's wrong here ?