I use an XMLListCollection for my ADG.
while declaring i do it as:
public var stockDataListCollection:XMLListCollection=new
XMLListCollection();
and not like :
>    public var ADGData:XMLList; (in ur code)

change that and see..it may work

On Mar 19, 10:48 am, sankar swaroop <[email protected]> wrote:
> Hi all,
>
> I am working on advanced datagrid.
> I am using httpService to get data to advanced datagrid
> from mysql in xml format.
> I stored this xml data in xmlList and i am giving this
> as dataprovider to advdatagrid, but ut is not displaying anything
>
> Below is my code:
>
> [Bindable]
>    public var ADGData:XMLList;
> public function httprequest1():void{
>    http.send();
>   }
>    public function httpr(event:ResultEvent):void{
>     Alert.show(http.lastResult.root.school.toString());
>    /* ADGData=event.result.root.school; */
>
>     }
>   ]]>
>  </mx:Script>
>
>  <!--<mx:AdvancedDataGrid x="10" y="10" id="ADG" designViewDataType="tree"
>   width="100%" height="100%" defaultLeafIcon="{null}">
>   <mx:dataProvider>
>    <mx:HierarchicalData source="{ADGData}"/>
>   </mx:dataProvider>
>   <mx:columns>
>    <mx:AdvancedDataGridColumn headerText="School Name"
> dataField="SchoolName"/>
>    <mx:AdvancedDataGridColumn headerText="Folder" dataField="@label1"/>
>    <mx:AdvancedDataGridColumn headerText="Lhs Object" dataField="@label2"/>
>   </mx:columns>
>  </mx:AdvancedDataGrid>
>
> But when i declare an xmlList variable with xml data here
> then it is dispalying
> Below is the xml data
>
> <>
> <SchoolName label='Matrix Schools'>
> <objectName label1='Admin'>
> <objectName label2='School Admin'/>
> <objectName label2='User Admin'/>
> <objectName label2='School Settings'/>9490091315
> <objectName label2='Object'/>
> <objectName label2='Bug Details'/>
> <objectName label2='Time Sheet'/>
> </objectName>
> </SchoolName>
> <SchoolName label='SARASWATHI VIDHANILAYAM'>
> </SchoolName>
> <SchoolName label='BHARATHI VIDYALAYAM'>
> <objectName label1='class details'>
> <objectName label2='result'/>
> <objectName label2='second class'/>
> <objectName label2='Object'/>
> <objectName label2='marks'/>
> </objectName>
> </SchoolName>
> <SchoolName label='PRATIBHA NILAYAM'>
> <objectName label1='class details'>
> <objectName label2='second class'/>
> <objectName label3='Object'/>
> </objectName>
> </SchoolName>
> <SchoolName label='Matrix schools'>
> </SchoolName>
> <SchoolName label=' Matrixschools9'>
> </SchoolName>
>    </>
>
> But it is not working when the data comes through httpservice
> Plz anyone help me
>
> Thanks.

--~--~---------~--~----~------------~-------~--~----~
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