Announcement Announcement Module
Collapse
No announcement yet.
Setting style into object creation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting style into object creation

    Hi there,

    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"/>
    <method-invocation name="setStyle">
    <arg>textAlign</arg>
    <arg>right</arg>
    </method-invocation>

    </object>

    does this make sense?

    Thanks in advance,
    Diego

  • #2
    nope

    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.

    cheers,

    Roland

    Comment

    Working...
    X