January 20th, 2006
New TDatePicker for Prado v3.0
Since Prado 1.0 the TDatePicker component used the feature rich javascript calendar from http://www.dynarch.com/projects/calendar/. There are a few problems with this calendar, namely, it was difficult to localized (i.e., a calendar in your own language).
Example: see the functional test for the date picker.
So for Prado v3.0 a new client-side calendar or date picker was written. It was written long before v3.0 began, during the v2.0 days. It was inspired from the Taperstry's date picker, and more recent Unobtrusive Date-Picker Widgit.
Here are the features for the new TDatePicker for Prado v3.0
- Lite weight, well compared to more featured one ;)
- No additional localization necessary, uses existing I18N data from ICU
- Keyboard navigation, see below
- Works in IE and Firefox, unsure about others
Keyboard access
Left,Right,Up,Down= day navigation (these are the arrow keys)Ctrl or Shift + Up= next yearCtrl or Shift + Down= previous yearCtrl or Shift + Right= next monthCtrl or Left= previous monthEsc= close date-picker (no date selected)Return= select highlighted date and close date-picker
Usage in Prado v3.0 is similar to the v2.x, e.g.
<com:TDatePicker />
Have fun!