I have an external xml file and i want to display 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?...
Asked
Active
Viewed 875 times
1
-
Are you accessing the field names correctly (datafield="@yourField"), and have you using the HierarchicalData class for you XML? – adamcodes Dec 09 '09 at 14:37
-
Maybe provide some code? – bug-a-lot Dec 10 '09 at 10:07
-
@adam..i have done all that
-
and my resultEvent function is.... public function results(event:ResultEvent):void { xmlList=user.lastResult.users; } here user is my HTTPService id and users is my root element.. – Rahul Dec 10 '09 at 11:42
-
and this is my xml file....saved user.xml
-
" (datafield="@yourField") this is what caught me up once this was in it worked perfectly. – Setori May 11 '10 at 07:26
1 Answers
1
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>

leiming
- 494
- 4
- 13