The following example shows how you can set the selected date for a Flex DateChooser control by setting the selectedDate property to a Date object.
Full code after the jump.
Continue reading ‘Setting the selected date in a DateChooser control in Flex’
Here’s an example which prevents users from deselecting a date in the Flex DateChooser control by Ctrl-clicking on the date. By listening for the DateChooser control’s change event, and if the currently selected date is null, we set the selected date to the previously selected date. Also, for no good reason, I added a List control which lets you disable certain dates in the calendar.
Full code after the jump.
Continue reading ‘Preventing a user from deselecting dates in a DateChooser control’