This is where I call the HierarchicalData
<component:MyHierarchicalData source="{dpHierarchy}" childrenField="children"/>
dpHierarchy contains a list of Radio.
And My Object Radio contains two lists :
public class RadioRds implements IDisplayable
{
private var _id :int;
public var name :String;
public var **docers** :ArrayCollection; // <Encoder>
public var **charges** :ArrayCollection; // <RadioRds>
}
Those thow list have the same level and they appear under the a label "name"
This is my extended class
package test.view.component
{
import mx.collections.HierarchicalData :
public class MyHierarchicalData extends HierarchicalData
{
public var children:* = null;
public function MyHierarchicalData(value:Object=null) {
super(value);
}
override public function getChildren(node:Object):Object {
var children:* = null;
// ???
return children;
}
}
}
I don't know what to do in the overriden function. should I concat the two list? How can I do it?