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>
 
__._,_.___

--
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