I ned to have a custom renderer for first column where name s are shown.
Here is my custom renderer:
package
{
import mx.containers.HBox;
import mx.controls.Text;
public class AssetReportNameRenderer extends HBox
{
private var _text:Text = new Text();
public function AssetReportNameRenderer()
{
super();
setStyle("backgroundAlpha", 0.0);
}
public override function set data(value:Object):void
{
super.data = value;
if (value)
{
_text.text = value.@Name;
addChild(_text);
}
}
}
}
My problem is that for parent nodes the text is shown after a plus sign,
but for children it starts from the left side regardless the hierarchy .
What am I missing?
Thanks