I am using the method outlined in jQuery UI - Custom widget - Datepicker to Whole Year Calendar to display a full year calendar. Whenever I click on a date the calendar then scrolls to show the month of the clicked on date at position 0. I want the calendar to stay where it is whenever I select dates. I have tried the following, to no avail, to keep the calendar from moving:
- Updating showCurrentAtPos to the selected month in the onChangeMonthYear handler.
- Changing showCurrentAtPos in the onSelect handler.
- Setting the actual date to the first of the current year in the onSelect handler.
Option 1 does not work since the onChangeMonthYear is only called when previous and next links are clicked to change the month and not when selecting dates.
Option 2 seems to be setting the value before the calendar is re-rendered.
Option 3 fails for the same reason as Option 2.