Here is an example:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=552

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Kumar
Sent: Friday, March 16, 2007 1:49 AM
To: [email protected]
Subject: [flexcoders] DataGrid in Action Script

 

Hi All,

My Query here is that I have an XML which has following structure 

<root>

    <row>

        <name>Kumar</name>

        <class>MCA</class>

    </row>

    <row>

        <name>Gaurav</name>

        <class>MCA</class>

    </row>

 </root>

 

Here child elements of <row> are fixed i.e. <name> and <class>

Next time there can be an XML containg one more child node like
<company> 

And I want to create a dynamic datagrid which can read XML and create
columns on the basis of this.

If XML has two child nodes like <name> and <class> then Datagrid should
have two columns if XML has 3 childnodes like <name>,<class>,<Company>
then Datagrid should contain 3 column like name,class and company.

Can this be done.......

I am not getting any approch but I am sure we will have to read the
child nodes and create a Datagrid in Action script.

If some one has done something like this please suggest me...

Thanks in advance guys......

Looking forward for your valuable responses.

 

Thanks,

Kumar

 

 

Reply via email to