[flexcoders] Re: Access active column header (DataGrid)

2009-04-07 Thread vitaly.nikolenko
yes, but there's no 
updateDisplayList
in parent DataGridItemRenderer class
Which else method can i override to draw graphics and use valid with and height?



--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> As I understand it, there is no backgroundColor style. What I did was
> use a graphic fill:
> 
>  override protected function
> updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
>  {
>  super.updateDisplayList(unscaledWidth, unscaledHeight);
>  var g:Graphics = graphics;
>  g.clear();
>  g.beginFill(0xBB);
>  g.drawRect(0, -2, unscaledWidth, unscaledHeight + 4);
>  g.endFill();
>  }
> 
> 





[flexcoders] Re: Access active column header (DataGrid)

2009-04-06 Thread vitaly.nikolenko
I tried to do something like that
override protected function validateProperties()
{
super.validateProperties();
setStyle('backgroundColor',0xFF);
}

it doesn't work




--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> How are you setting backgroundColor?  Show some code.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available




[flexcoders] Re: Access active column header (DataGrid)

2009-04-04 Thread vitaly.nikolenko
I tried custom headerRenderer based on default DataGridItemRenderer, I  set 
backgroundColor in it, without any conditions
but without any effect -  the background color of the header remains as set in 
"headerColors" property of the DataGrid



--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> DataGridColumn supports the headerRenderer property.  Google this.  I have
> not used a headerRenderer, but know that itemRenderers in general are




[flexcoders] Access active column header (DataGrid)

2009-04-04 Thread vitaly.nikolenko
Hi
I'm making a kind of spreadsheet for data entry based on DataGrid Component
And i need to highlite  active column header (change it's background)
I do have the column index from editedItemPosition but i can't  understand how 
to acces the column header
Is that possible at all? 



[flexcoders] Re: Dynamic creation of ComboBox in ActionScript

2009-04-02 Thread vitaly.nikolenko
I think you can use .callLater

--- In flexcoders@yahoogroups.com, "brad.bueche"  wrote:
>In mxml, I would use creationComplete.  However, actionscript does not seem to 
>have this method for ComboBox. What do I use?  
>