Apr 13th, 2010, 01:16 AM
Setting style into object creation
I was wondering what would be the recommended way to set up some styles on object declaration.
I got something like this:
<object id="priceColumn" class="mx.controls.advancedDataGridClasses.Advance dDataGridColumn">
<param name="dataField" value="price"/>
does this make sense?
Thanks in advance,
Apr 14th, 2010, 02:30 AM
The setStyle method invocation should work on regular MXML components, but unfortunately the AdvancedDataGridColumn (or DataGridColumn) are an exception. These MXML classes are non-visual, which means that there won't be an Event.ADDED fired for them. Therefore the method-invocation will never take place.
As of now I wouldn't be able to come up with a work-around for you, I'm sorry. In this case you'll have to set the style statically on the MXML markup.