Hi,

Having a bit of a nightmare with a headerrenderer, it simply doesn't
work for me, ahhhhhh I hear you say.

This is what I have:

<mx:DataGridColumn headerRenderer="renderers.EmptyRenderer"
backgroundColor="#C0C0C0" width="75" textAlign="center"
headerText="black"/>

The Renderer is this:

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns="*"
marginTop="0" marginBottom="0" hScrollPolicy="off" verticalGap="0"
horizontalGap="0" backgroundColor="#dddddd" vScrollPolicy="off"
verticalAlign="top" borderStyle="none">
<mx:Script>
<![CDATA[
var headerText:String;
public function setValue(str:String, item:Object) {
        if (item == undefined){
         visible = false;
         return;
        }
        visible = true;
        headerText = str;
}
]]>
</mx:Script>
<mx:Text text="{headerText}" width="100%" height="100%"/>
</mx:HBox>

All I want to show is the headerText with a backgroundColor in the header.

Can anyone help please?

All I get at the moment is a blank header, with nothing in it and the
same as the default header colors.

Cheers,

Iain

Reply via email to