Accessing an ItemRenderer in a DataGrid
Posted
by mmattax
on Stack Overflow
See other posts from Stack Overflow
or by mmattax
Published on 2009-02-07T22:29:41Z
Indexed on
2010/05/26
12:01 UTC
Read the original article
Hit count: 356
I have a data grid that has a checkbox item renderer in a cloumn to allow row selections:
Main application:
<mx:DataGrid id="dg">
<mx:columns>
<mx:DataGridColumn id="ir" itemRenderer="renderers.RowCheckbox" />
<mx:DataGridColumn dataField="Name" headerText="Name" />
</mx:columns>
</mx:DataGrid>
Item renderer:
<-- RowCheckbox -->
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center">
<mx:CheckBox id="chk"/>
</mx:HBox>
How can I get a handle to the item renderer / checkbox so that I may determine which rows are checked?
© Stack Overflow or respective owner