I have observed (both in Flex version 2 and 2.01
PreRealease) that on a datefield (and probably
datechooser control too) with navigateYear set to
enabled,  if the maxYear was  set to the
selectedDate's Year, the set maxYear value seems to be
nullified.

i.e., selected date is January 1, 2006, and for some
reason maxYear is set to 2006, you can then navigate
beyond 2006 using the year navigation arrows. However,
if you set the maxYear to 2007 (or any year after
2006), maxYear does it's job fine and so you cant
navigate beyond 2007.

This will help a lot in the date interval component I
am creating from 2 datefields since I have to
programmatically set the maxYear of the 'From'
datefield to be equal to the year of 'To' datefield's
selectedDate whenever a new To date is selected (and
vice versa when a new 'From' date is selected.  The
strange maxYear behavior gets in the way of
implementing that functionality most especially if the
initial values  of the two dates fall within the same
year.

Can you guys verify of this behavior is true to your
copies of Flex? If it is, then I should probably file
a bug. THnx!


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Reply via email to