Saturday, January 16, 2010

Preventing a user from deselecting dates in a DateChooser control

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.

(more…)

flex date chooser

No comments:

Post a Comment

Your comments is appreciate.