Could you please send me a sample code how to use XMLListCollection with ADG? I tried it myself, but it doesn't show any data which is inside anything except root.
Tried to Google it, but after few hours of search could not find any working example, especially with true hierarchical data (node within a node withing a node...) to show it in a Tree like view. TIA, Oleg. On Tue, Jan 7, 2014 at 3:59 PM, Martin, Brad <brad.mar...@fmr.com> wrote: > If you use an XmlListCollection, it will be able to display data > hierarchically automatically. Else your domain model objects should > implement the hierarchical data interface, a data grid accepts that > interface as well. > > -----Original Message----- > From: Oleg Konovalov [mailto:oleg...@gmail.com] > Sent: Tuesday, January 07, 2014 10:49 AM > To: flex-...@incubator.apache.org; > flex-users-sc.1332161687.jbdhnjpfpgdkhoapicme-olegkon= > gmail....@incubator.apache.org > Subject: Building Class Explorer in Flex > > Hi, > > I am trying to build Class (Object Model) Explorer in Flex, > so it would show user Classes within Classes and allow View/Add/Edit/Delete > them. > This is not Flex classes, but kind of ORM system for user data. > So I receive user data as from DB with a row like: > Path (class4.class3.class2) - not like package, but true hierachical data. > Class (Class1 which consists of Attributes (primitives), say Strings, Ints, > etc) > > Need to build a Tree from that and put it in the 1st ADG column. > I have 1000s of Classes, and it can go 10+ levels deep. > > So any idea how to build a tree (HierarchicalData) out of that (true > hierarchical data, not grouping)? > Any code samples? > > > I created a POC, here is an exerpt of input data for a tree: > [Bindable] > public var acClasses:Object = { > category:"root", children: [ > new PathVO("class4", [ > new PathVO("class3", [ > new PathVO("class2", [ > new ClassVO("Class1", { "Attr1", "Attr2", "Attr3"} ) > ] ) > ] ) > ] ) > }; > > Please advise! > > -- > Thank you in advance, > Oleg. > -- Thank you, Oleg.