There are CellRenderer's and CellEditors.  A cell renderer just adjusts the display from the default textinput to a checkbox etc... However, if you change the cellrenderer, that won't have any affect on the underlying dataprovider. You need to set the cellrenderer's isCellEditor property to true.  This will cause the cell to use the cellRenderers class as the editor class as well.  Once you have a cellEditor, you have access to the underlying dataprovider. 

On 2/6/06, Jonathan Miranda <[EMAIL PROTECTED]> wrote:

So I decided to mess around with the new inline cell-renderers…and having issues getting at their data. Pretty simple example…

<mx:DataGridColumn textAlign="center" columnName="compare" sortable="false" headerText="Compare" width="75">

<mx:cellRenderer>

<mx:Component>

<mx:HBox width="100%" horizontalAlign="center">

<mx:CheckBox id="myCheckie"/>

</mx:HBox>

</mx:Component>

</mx:cellRenderer>                                                                               

</mx:DataGridColumn>

So I've tried everything I think of attempting to find out if the checkbox is selected or not, using either "compare" or "myCheckie"….anyone know how? Just want a checkbox and the ability to find out by actionscript if it's checked or not (running through the whole datagrid).

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to