refresh datepicker

refresh datepicker


Hi,
we are using ui.datepicker (and are very thankful for it :) ) but I
can't figure out how to do the following.
We have 2 input boxes with attached datepickers that are using
beforeShowDay, sometimes however the data that beforeShowDay needs is
not available when the datepicker is shown. We raise an event when the
data becomes available so I would like to be able to tell the
currently visible datepicker to redraw itself. Any idea how i would go
about doing that?
I guess if redrawing is not an option I could simply show and hide the
datepicker in question but is there any recognized method of finding
out what datepicker instance, if any, is currently visible?
Atli.