Do you need to rerender that day while the datepicker is still open? If not, reinitializing may work.
$(".dp").datepicker("destroy").datepicker(); Jörn On Mon, Aug 17, 2009 at 11:04 PM, bas-i<basschu...@gmail.com> wrote: > > 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. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---