Skip to main content

Search and Top Navigation

#3159 closed feature (fixed)

Opened July 31, 2008 04:18PM UTC

Closed August 21, 2008 03:57PM UTC

Last modified January 17, 2010 06:09AM UTC

datepicker function to do refresh/redraw

Reported by: anonymous Owned by: kbwood
Priority: trivial Milestone: 1.6rc1
Component: ui.datepicker Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

would be nice if the datepicke had a datepicker("refresh"); function to force the datepicker to redraw itself.

Attachments (0)
Change History (7)

Changed August 02, 2008 11:04AM UTC by kbwood comment:1

owner: grabanskikbwood
status: newassigned

This shouldn't be necessary as the datepicker should always redraw itself when anything changes. In what circumstances are you seeing a need for this?

Changed August 04, 2008 09:54PM UTC by pbavinck comment:2

I am using datepicker showing special dates. Great that the Month/Year Notify has been fixed so I can load the special dates data (ajax) before displaying the calendar. This refresh request also has to do with special dates. The underlying data structure holding the special dates for the currently displayed month may also change and I would like to instruct the calendar to redraw all month days. I hope that clarifies my request.

Needless to say I think this plugin rocks. Very neat code, well set up!

Changed August 08, 2008 06:11PM UTC by kbwood comment:3

Can you add this to the $.extend(Datepicker.prototype, {... section and test it out?

/* Redraw the date picker attached to an input field or division.

@param target element - the target input field or division or span */

_refreshDatepicker: function(target) {

var inst = $.data(target, PROP_NAME);

if (inst) {




Changed August 14, 2008 12:13AM UTC by pbavinck comment:4

Added the code and tested it in my application with an inline datepicker. It works like a charm (in IE6&7, Safari 3.1 (windows) and Firefox 2).

I tested with only one datepicker on the page, so I don't know how it behaves with multiple datepickers shown at the same time.

Thanks, this code helps me a lot!

Changed August 16, 2008 06:21PM UTC by Cloudream comment:5

milestone: → TDB

Changed August 21, 2008 03:57PM UTC by kbwood comment:6

resolution: → fixed
status: assignedclosed

Applied to main code.

Changed November 19, 2008 04:29AM UTC by rdworth comment:7

milestone: TBD1.6rc1