Datepicker: re-rendering a day in onSelect?
Hi,
I'm using datepicker to display 6 months where on any given day, a
cell is rendered (using the beforeShowDay event/callback) according to
some record in our database. In the onSelect handler, the user should
be able to "toggle" the underlying record in our database.
This is working fine; my onSelect handler gets the selected Date,
based on that date, it works out the id of the database row and
updates it.
However, at that point, I need to update the look of the cell that was
clicked on so I can indicate the change in state for that day.
Is there a way to do that? I'd essentially need something like
"renderCell(theDate)" so that particular date gets re-rendered (using
beforeShowDay, that handler has the smarts to re-render that day based
on the new state (I'm keeping a client-side array for that)).
Thanks,
bas.