Have you filed a bug on this issue?  I don't have a better way for
you...

Matt

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: Monday, January 30, 2006 2:22 PM
To: Flexcoders
Subject: [flexcoders] DateField & selectedDate toggle

If you select a day in a DateChooser or DateField, it sets the
selectedDate 
to the Date value chosen.  If you select it again, it sets it to
undefined.

This is not desirable.  This is the only control that does not follow
the 
List way of working:
- click to select
- control + click to deselect

This is driving our validation crazy as well.

In Flash MX 2004, I simply extended the CalendarLayout & DateChooser to
fix 
the problem.  I did not allow de-selection, therefore never had to worry

about selectedDate toggling to a non-selectable value if a user clicks
the 
same date again.

In Flex, this isn't so straightforward.  For now, I'm going to just try
to 
extend the DateField, extend DateChooser's getter/setter functions
(since 
there are like 3 functions that are too huge to extend that atcually do
the 
re-setting of the variable), and then hi-jack the class that DateField 
throws up in the PopUpManager to use mine instead.

...anyone have a... you know... better way?  Perhaps an already fixed 
DateField?

--JesterXL 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

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


Reply via email to