Home Unanswered Active Tags New Question

Day Pilot calender events get cleared off after page post back caused by Drag & Drop off of a particular event

All the calender events get cleared of during drag and drop of a particular event. from analysis we found that 'BeforeEventRender' is not getting fired after 'Event_Move' triggers. we are handling all event functionality through Postbacks. Please help to understand on what all be the scenarios where firing of 'BeforeEventRender' fails?

Developing Environment
-VS 2008
-DayPilot dll (6.4)
-Target browser - IE 7 /IE 8

Asked by Shelly 1 year ago.
Replies

The key here is to call DataBind() in the EventMove event handler. You need to send a fresh set of events after every change.

The general EventMove handler scheme is as follows:

if (changeIsToBeMade) {
  updateTheDatabase();
  DayPilotCalendar1.DataSource = loadEvents();
  DayPilotCalendar1.DataBind();
  DayPilotCalendar1.Update(); // required for CallBacks
}
else {
  // do nothing
}

The BeforeEventRender is than called for every event in the DataSource.

Comment posted by Dan Letecky 1 year ago.

Thanks Dan.. That worked for us. Appreciate the quick response

Comment posted by Anonymous 1 year ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java