Flex Tree Custom Tree View -


i have xml string fetched remote object like:

<metadata>     <system name="a">       <servicegroup name="sg1">         <version id="id1" />         <service name="s1"/>       </servicegroup>       <servicegroup name="sg2">         <version id="id2" />         <servicegroup name="sg3">           <version id="id3" />           <service name="s2"/>         </servicegroup>       </servicegroup>     </system>   . . . . </metadata> 

as xml sample shows, contains nested servicegroups. have display services,and servicegroups. , ignore else..eg. version services viz. s1 , s2 should leaf nodes, else must parent

e.g.
->a
--->sg1
------>s1
---->sg2
------>sg3
--------->s2
.
.
.

i tried kind of things, using labelfunctions, labelfield properties tree doesn't help. end un-labelled leaves.

i think can itreedatadescriptor not sure how. flex beginner , adobe sample didn't ..

i think above tutorial far complex beginner. appreciate if can point me simpler.

thanks, sandeep

i think approach may holding bit. easier change default behavior of control or change data providing control?

it opinion should first of change dataprovider of tree xmllist metadata.system.servicegroup (you may doing already, can't tell without code example of trying). should loop through list , remove version nodes.

delete yourxmllist.servicegroup.version[0]; 

you can search google better code examples.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -