search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

error on callback from refreshCallBack

Asked by Scott Lee
16 years ago.
I am getting an exception: $t.colors[...] is null or not an object after I make a refreshCallBack call.

Any ideas????
Comment posted by Scott Lee
16 years ago.
It seems to happen when I set CellsPerHour just before calling Update().
Comment posted by Dan Letecky
16 years ago.
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).
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.