Hi all
I've been trying to work out how to subclass the DateField control to
roll up the label, format and validator functionality into the same
control...
... and getting nowhere fast.
this is to use the custom dateField either as a descrete control...
<mx:Form>
<mx:FormItem label="Label">
<mx:HBox width="100%">
<customcontrols:DateField
editable="true"
formatString="DD/MM/YYYY"
dataProvider="{user.dob}"/>
</mx:HBox>
</mx:FormItem>
</mx:Form>
... or in many columns of a DataGrid (needs to set data back to
ArrayCollection)...
<mx:DataGridColumn dataField="ReminderDate" editable="true" width="100"
headerWordWrap="true" headerText="Reminder Date"
rendererIsEditor="true"
editorDataField="selectedDate">
<mx:itemRenderer>
<mx:Component>
<customcontrols:DateField
editable="true"
formatString="DD/MM/YYYY" />
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
(...and so I can ultimately go:)
<customcontrols:DateField
editable="true"
formatString="{locale.getDateFormat()}" />
I've been trying to get these ideas to work with this and having
little success.
- http://livedocs.macromedia.com/flex/2/docs/00000540.html#413122
- http://tech.groups.yahoo.com/group/flexcomponents/message/374
- http://tech.groups.yahoo.com/group/flexcoders/message/37549
I've done this sort of thing heaps of times with ColdFusion custom
tags and DHTML calendar controls. But at the moment I don't know where
to start. the datagrid/stand-alone requirement is already giving me a
headache...
has anyone seen an example of this sort of thing? rolling up label,
formatting, parsing and validation for dataGrid or stand-alone use?
thanx
barry.b
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcomponents/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcomponents/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/