DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Bugs » error on callback from refreshCallBack

error on callback from refreshCallBack

I am getting an exception: $t.colors[...] is null or not an object after I make a refreshCallBack call.

Any ideas????
Scott Lee - 1/23/2008 9:58:11 PM
It seems to happen when I set CellsPerHour just before calling Update().
Scott Lee - 1/23/2008 10:23:33 PM
Changing CellsPerHour is not supported during CallBack.

DayPilotCalendar updates only the cell colors (it doesn't redraw the whole background table) after Refresh. If you change CellsPerHour it passes an array with different dimensions to the client.
If you need to change CellsPerHour, the best way is to do it using partial PostBack (inside UpdatePanel).
Dan Letecky - 1/24/2008 11:16:04 AM
Post reply