We have a Datefield component with Editable = true
<mx:DateField id="startDate"
width="120"
editable="true"
formatString="MM/DD/YYYY"
selectableRange="{{rangeStart : new Date(2010,0,1), rangeEnd : new Date()}}"
showToday="true"
labelFunction="formatDate"
restrict="[0-9] '\/'" change="startDate_clickHandler(event)"
yearNavigationEnabled="true"
text="{}" tabIndex="15" />
The Calendar has everything we want (able to choose a valid date only after 01/01/2010). Now the issue is that if the user enters (Editable = true) an invalid date or any date < 01/01/2010, how can i validate that and show an alert saying that the date is invalid. Please any help on this would be appreciated.
Thanks
Harish
You can do it in following way.