You could listen for the change event and store the current value.  If you see a change event and the new value is null, just reset to the previous value.

 

To reset the selectedDate just assign it to today for example.  myDateField.selectedDate = new Date();

 


From: [email protected] [mailto:[email protected]] On Behalf Of Yasovardhan Babu
Sent: Tuesday, October 10, 2006 3:01 AM
To: [email protected]
Subject: [flexcoders] Problems with DateField Control in Flex 1.5

 

Hi,

When a select the same date twice, the date selected is cleared in the
text box.How to retain the same date when clicked twice?

I also have one more issue with datefield control.

If I select a date, it is retaining selected day, month and year.When
I click on a button and came back to the DateField control to choose
the date, it should show the current date and not the previously
selected date. How to solve this? Please help.

Thanks and Regards,
Yasu.

__._,_.___

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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to