Renderers are recycled and intended to be data driven.  See my blog for
more info (blogs.adobe.com/aharui)

 

However, in some cases you can use indexToItemRenderer

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of danny_yoo88
Sent: Tuesday, November 13, 2007 10:59 AM
To: [email protected]
Subject: [flexcoders] Re: fetching values of inline itemrenderers in
datagrids

 

Hi all,

Any thoughts on this one?

Thanks,

Danny

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "danny_yoo88" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I've got an HSlider in an inline itemrenderer in a datagrid. I can't
> seem to read the value of the slider at all. <code below>
> 
> The debugger doesn't show any way to reach:
> 
> dg..mySlider.value
> 
> It seems to me that the Component is inaccessible like a black box but
> I don't know enough about how Flex works in this regard.
> 
> Any suggestions?
> 
> <mx:DataGrid id="dg">
> <mx:DataGridColumn headerText="myNum">
> <mx:itemRenderer>
> <mx:Component>
> <mx:HBox>
> <mx:HSlider id="mySlider" />
> </mx:HBox>
> </mx:Component>
> </mx:itemRenderer>
> </mx:DataGridColumn>
> </mx:DataGrid>
> 
> Thanks,
> 
> Danny
>

 

Reply via email to