开发者

Flex: Displaying xml in advanced data grid

开发者 https://www.devze.com 2022-12-13 11:13 出处:网络
I have an external xml file and i want to d开发者_JS百科isplay it in an advanced data grid....as in if i click the parent element the children have to be displayed in the corresponding columns...i\'m

I have an external xml file and i want to d开发者_JS百科isplay it in an advanced data grid....as in if i click the parent element the children have to be displayed in the corresponding columns...i'm trying it with my dataprovider but its not working. How do i do that?...


Maybe you are coding as usual:

<mx:AdvancedDataGrid dataProvider="{user.users}" width="100%" height="100%">
...
...
</mx:columns>

So may you change a little?

<mx:AdvancedDataGrid dataProvider="{new HierarchicalData(user.users)}" width="100%" height="100%">
...
...
</mx:columns>
0

精彩评论

暂无评论...
验证码 换一张
取 消