Hi everybody,
In my application I'm trying to set date range for
dateField programatically and does it only ones, when
I try to change it later dateField doesn't do it
right. It only restricts months but not dates. Usually
when you set a date range you would see disabled
dates, in my case in doens't disable dates. For
example:
I have a DateField
<mx:DateField height="20" id="sDate" />
//I set default date range on creation complete
private function setDateRange():void
{
sDate.selectableRange={rangeStart: new Date(2006, 7,
1), rangeEnd: new Date(26, 11, 31)}
}
//here I try to update rangeStart on other event
//I pass the date object to this function
//and it works right only once (I get the right dates
disabled)
//next time I call this function it disables months
but not dates
private function updateDateRange(dt:Date):void
{
sDate.endDate.selectableRange.rangeStart = dt;
}
I wonder it anyone else had such a problem. May be
I'm doing something wrong here.
Dima
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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/