Hi,
In the first column of my custom AdvancedDataGrid, I want to display
two 16x16 images right before the name of the item. However,
extending AdvancedDataGridItemRenderer class does not allow me to do
that since this class's API does not expose any method
called "createChildren". The class simply extends TextField class.
If I use an in-place itemRenderer, the indentation on the life side
of all leaf nodes is messed up. The indentation on the left side of
each tree node is needed in order to show a clear hierarchical
structure.
<mx:AdvancedDataGridColumn headerText="Name" dataField="name"
sortable="false" width="300" minWidth="160">
<mx:itemRenderer>
<mx:Component>
<mx:HBox horizontalScrollPolicy="off"
verticalScrollPolicy="off" horizontalGap="1">
<mx:Image source="{outerDocument.itemToIcon(data)}"/>
<mx:Image source="{(outerDocument.isDevice(data)==true)?
outerDocument.getStatusIcon(data) : null}"/>
<mx:Label text="{data.name}"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
Is there any suggestion out there? Any advice is greatly appreciated.
Regards,
Tung Chau