rakeshpatel2009 / jquery-datepicker

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

There should be event for after month year change #364

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello Developer,

This event must be necessary as sometimes we need to call some query from db 
according to the selected month and year and then need to apply the style 
according to the data before rendering of table cell. This must be a great 
enhancement for this datepicker as this is already the best script compare to 
other.

Thanks

Ashish

Original issue reported on code.google.com by mailbox....@gmail.com on 1 Feb 2013 at 5:39

GoogleCodeExporter commented 8 years ago
Like the "dateSelected" event? Example here (press F12 to open Firebug lite if 
you aren't in Firefox):
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerListen.html

Re. styling the cell, see this example:
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerCustomCellR
ender.html

Original comment by kel...@kelvinluck.com on 1 Feb 2013 at 6:49

GoogleCodeExporter commented 8 years ago
Thank for your reply. I think I was unable to describe my scenario. This is the 
case where the calendar is used only when we are using the same for displaying 
the employees details. We wanted to see the list of holidays set in DB, the 
days he took off etc. So no date would be selected ever. All the cells are read 
only. Now he can see the complete month calendar on change of month and year 
and currently all the values are called from DB each time the day cell is 
rendered. While we can skip this call each time by calling it only once on the 
change of month and year and could use that JSON data to style the day cells 
before rendering. This way the speed of the application would be great and this 
method can be used in many scenerios. 

Please let me know if I can make you understand the case.

Thanks

AShish

Original comment by mailbox....@gmail.com on 2 Feb 2013 at 3:29

GoogleCodeExporter commented 8 years ago
Like this example?
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/renderCalendarBankHol
idays.html

Original comment by kel...@kelvinluck.com on 4 Feb 2013 at 10:04