views:

125

answers:

1

using jquery date picker you can render specific cells the way you want. (in my case i have a list of dates that i want to highlight as they are important days)

i see that datepicker itself supports this here:

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/renderCalendarCallback.html

but i dont see the multimonth implementation having an option for renderingcustomDates

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiMonth3.html

was this missed out in the implementation to expose this functionality?

A: 

A very late answer but in case you were still wondering, you can indeed use a renderCallback with the multimonth date picker.

e.g.

$('#multimonth').datePickerMultiMonth(
    {
        numMonths: 2,
        inline: true,
        renderCallback: function($td, thisDate, month, year)
        {
            $td[thisDate.isWeekend() ? 'addClass' : 'removeClass']('disabled');
        }
    }
);

A more complex example is here:

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiMonth7.html

And you can do anything you want in the renderCallback e.g. this example adds special behaviour to UK bank holidays:

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/renderCalendarBankHolidays.html

vitch