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

Calendar eventMove callback is not updating correctly

Asked by Sean
16 years ago.

I have been using the callback on eventmove and eventresize events and the callback was working great. I then upgraded to version 4.7.1399 and the callback now updates, but all the events are no longer displayed. One of thereasons I upgraded was to use the additional headers. In my case I am setting the headerlevel to 2 in the code behind and then creating the first header row that contains the date and then creating children under that which are my resources. When I resize or move an event I specify the datasource and call databind() and update() on the calendar.

I tested this in the demo and it seems that theresize callback is working there.So I went back to my code and I then removed the first header row, which was the date in my case, so I no longer had any children and now the resize callback works. I don't think the problem is with the Calendar since it works in the demo, but I can't figure out why the callback doesn't bind the data correctly when I am using multiple headers. If anyone has any ideas on why the callback doesn't bind my data correctly I would appreciate it.

Comment posted by Dan Letecky
16 years ago.
Remember to specify both Date and Value for the lowest-level rows.

It's inherited from the parent in the hierarchy only for the missing children (e.g. when you define 2 levels in your Columns hierarchy and use HeaderLevels="3" then the empty cell will use the Date and Value of the closest parent).
Let me know if this didn't solve the problem.
Comment posted by Sean
16 years ago.

I was able to get this working. I realized that during the callback, I wasn't building the columns. That is why it worked on a postback, but not a callback. Thanks for your help.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.