I'm trying to create a Hierarchical Data Grid in flex using AdvancedDataGrid. The data is retrieved from a remote java object. For project and requirement purposes, GroupingCollection is NOT an option. So I'm trying to create a dataprovider just like the one shown in the first example in this link, on the java side and then send it to flex.
How do i create such a data structure in java? Is there any working code as an example?
In all examples that I've seen the data is manually inserted just like in the example.