I have a dataGrid
where I'd like to use a checkbox drop-in renderer/editor. My query returns two
columns: name [varchar(45)] and featured [smallint]. Featured returns
either 1 or 0.
Now, in the
dataGrid, my featured column looks like this:
<mx:DataGridColumn headerText="Featured Image" dataField="featured"
itemRenderer="mx.controls.CheckBox" rendererIsEditor="true"
editorDataField="selected" textAlign="center"/>
First off... The
checkbox doesn't show checked/unchecked according to the value of featured (1 or
0). Do I need to somehow convert 1 & 0 to boolean values? Isn't flash
supposed to do this automatically?
Secondly... The
checkbox isn't centered. I'm not sure how to do that, as silly as it
sounds.
Shan
__._,_.___
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006

