pawanjain111 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

[Feature or how to advise request] Popup multimonth calender with only array of dates being enabled #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Helllo Kelvin,

First of all thanks for the great datepicker you build.
I have implemented it succesfully in a holidays booking site.

I need to be able to popup a mulimonth datepicker of three months, with 
the ability to conrol which dates in those months are enabled.

For example:
1. If an hotel isn't available on the selected start- end daterange.
2. I want to show them a multimonth datepicker from 1 month before until 
one month after the initially selected start date, with dates where the 
hotel is available enabled, these available dates could be given to a 
method in an array for example.

Hope you understand what i mean with point 2 and if this is possible you 
could give me some advise how to do it.

Thanks in advance.

Peter

Original issue reported on code.google.com by pe...@bookinn.nl on 14 May 2009 at 9:55

GoogleCodeExporter commented 8 years ago
@update:
I managed to get the above working already, using the renderCallback option, 
all i 
need to figure out now is how i can add an other callback function after a date 
is 
selected.

Original comment by pe...@bookinn.nl on 15 May 2009 at 12:42

GoogleCodeExporter commented 8 years ago
Hi,

Rather than adding another callback function you can use the same renderCallback
function but in it check what dates are selected.

A complex example of using renderCallbacks in this manner is available here:

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

Hope that helps,

Kelvin :)

Original comment by kelvin.l...@gmail.com on 18 May 2009 at 6:17