Hi, How can I hide the root node('items' in the above example) of the XML?
appreciate your response!!!

Stefan-98 wrote:
> 
> 
> Yes that worked! Thank you very much!
> Stefan
> 
> On 26 Jul., 07:57, "<mx:AnandVardhan/>" <[email protected]>
> wrote:
>> see ... i think this ll
>> workhttp://flexpearls.blogspot.com/2008/01/using-advanceddatagrid-as-tree...
>>
>> Anand
>> (Adobe Certified Developer)
>>
>> On 25 Jul, 19:54, Sameer <[email protected]> wrote:
>>
>> > set dataProvider="{new HierarchicalData(dp)}"
>>
>> > On Jul 25, 12:57 am, Stefan <[email protected]> wrote:
>>
>> > > Hi,
>> > > I try to display hierarchicalxmldatain an advanced datagrid.
>> > > I have the following example:
>>
>> > > <?xmlversion="1.0" encoding="utf-8"?>
>> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
>> > > layout="absolute">
>>
>> > >         <mx:Script>
>> > >                 <![CDATA[
>>
>> > >         [Bindable] private var dp:XML= newXML(
>> > >                 <items>
>> > >                     <item id="1" name="1">
>> > >                         <item id="2" name="2"/>
>> > >                         <item id="3" name="3"/>
>> > >                     </item>
>> > >                     <item id="4" name="4"/>
>> > >                     <item id="5" name="5"/>
>> > >                 </items>);
>>
>> > >                 ]]>
>> > >         </mx:Script>
>>
>> > >         <mx:AdvancedDataGrid id="adg" dataProvider="{dp}" >
>> > >           <mx:columns>
>> > >             <mx:AdvancedDataGridColumn dataField="@id" />
>> > >             <mx:AdvancedDataGridColumn dataField="@name" />
>> > >           </mx:columns>
>> > >         </mx:AdvancedDataGrid>
>>
>> > > </mx:Application>
>>
>> > > I get nothing displayed in the grid. Where is the mistake?
>> > > Thanks in advance!
>>
>> > > Kind regards!
>> > > Stefan
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-flex_india%3A12276--Advanced-Datagrid-and-hierarchical-XML-data-tp18639546p24776539.html
Sent from the Flex India mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to