The DateField cellRenderer works great when your date is already a Date object. However, since I am dynamically reading in an XML file the date field comes across as text, so I'm trying to cast it into a Date object before using the cellRenderer component. But it just won't work. Has anyone run into this problem yet?
<mx:DataGridColumn headerText="Active Date" labelFunction="myLabelFunction" width="100">
<mx:itemEditor>
<mx:Component>
<mx:DateField editable="false" selectedDate="{new Date( Date.parse(data.MyActiveDate))}" />
</mx:Component>
</mx:itemEditor>
</mx:DataGridColumn>
__._,_.___
<mx:itemEditor>
<mx:Component>
<mx:DateField editable="false" selectedDate="{new Date( Date.parse(data.MyActiveDate))}" />
</mx:Component>
</mx:itemEditor>
</mx:DataGridColumn>
--
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.