without the editorDataField indicator datagrid will operate on the "text" property. You will need to subclass DateField and override set data method to make it parse strings in DataGrid mode. See the original source of DateField for the sample of parsing it does in non-datagrid mode - that is the case you are dealing with.
Regards, Anatole ----- Original Message ----- From: "barry.beattie" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Sunday, September 03, 2006 8:05 AM Subject: [flexcomponents] Re: dateField broken when in a datagrid: what to do? > (sheepishly) > > thankyou very much Hilary. you're right, that example (and your > corrections) are exactly what I've been trying to do. > > I was all over the language reference, Quickstarts and livedocs about > itemRenderers but totally missed that one (at least I know what a > drop-in renderer is now...) > > please forgive another non-components question (it seems) but... > > one thing I am confused with tho, is that I've totally lost the > ability to manually enter a date (in addition to the option of > choosing one). > > I know that I've got validataion and formatting to add for each date > field (allow ddmmyyy, convert that to a real date for the > ArrayCollection data and display dd/mm/yyyy - using the > labelFunction?) but I thought that the editable="true" with > rendererIsEditor="true" should have allowed access to manual editing? > > Any pointers to what else I've missed? > > > <mx:DataGridColumn dataField="ReminderDate" > editable="true" width="100" > headerWordWrap="true" headerText="Reminder Date" > itemRenderer="mx.controls.DateField" > rendererIsEditor="true" > editorDataField="selectedDate" > /> > > > thanx again for your help and patience. > > cheers > barry.b > > > > > > > > Yahoo! Groups Links > > > > > > > > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcomponents/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
