tags:

views:

80

answers:

1

I need a datepicker that will display the entire year for adding dates to a schedule, and I want to be able to make different dates different colors based on other criteria. I know I can use the beforeShowDay function on page load, but what about changing the selected date's style programmatically?

Currently we have an asp.net button for each day that we change accordingly on postback but such an approach is clumsy at best and requires manually setting up the calendar. Any suggestions? I know I can display the calendar inline by attaching it to a span but not sure how to handle the other issues.

+1  A: 

Have you seen this?

The following example displays how you can create a "multi month" date picker which shows two consecutive months and allows you to pick one date with them.

And this?

The following example demonstrates the use of $().renderCalendar as introduced by jquery.datePicker.js - we supply a renderCallback parameter so that we have control over how each day is rendered.

Nathan Long