flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Spark GridView and accessing the rendererLayer (4.10+)
Date Tue, 28 Jan 2014 04:27:42 GMT
I thought you were supposed to use datagrid.grid.getItemRendererAt

On 1/27/14 4:22 PM, "chromalux" <chromalux@yahoo.com> wrote:

>Hi Everybody, 
>We've run into an issue accessing the rendererLayer in a Spark grid in
>It appears that this might be from the changes in the grid skin where the
>gridLayers are now wrapped with a GridView.
>Our custom skin has been updated to include the required GridView wrapper:
><s:Grid id="grid" itemRenderer="...">
>    <s:gridView>
>        <fx:Component>
>            <s:GridView >
>                <s:GridLayer name="backgroundLayer"/>
>                <s:GridLayer name="selectionLayer"/>
>                <s:GridLayer name="editorIndicatorLayer"/>
>                <s:GridLayer name="rendererLayer"/>
>                <s:GridLayer name="overlayLayer"/>
>            </s:GridView>
>        </fx:Component>
>    </s:gridView>
>Previously we could access the rendererLayer on partAdded like this:
>const rendererLayer:GridLayer =
>dataGrid.grid.getChildByName("rendererLayer") as GridLayer;
>But that doesn't work anymore. I've tried accessing it via the
>adding an id to the gridView and I've tried using updateComplete instead
>partAdded (which is too late anyway) and a few other ways but with no luck
>so far. Any suggestions on how to reference the rendererLayer via the grid
>would be appreciated.
>Ultimately what we're after is the renderers themselves as they are
>and not the rendererLayer itself. If there is another way of getting at
>those that would eliminate the need to access the rendererLayer that would
>work as well. 
>Thanks a lot, 
>View this message in context:
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

View raw message