Older versions of DayPilot stored event data in ViewState by default. Newer versions use StoreEventsInViewState property to control the behavior. By default it is set to "false".
You can enable the old behavior:
StoreEventsInViewState="true"
However, this might cause performance issues (everything has to be encoded and sent back and forth with every request, then decoded on the server side).
It would be more efficient to reload the events from the database every time:
protected void DayPilotScheduler1_EventResize (object sender, DayPilot.Web.Ui.Events.EventResizeEventArgs e){
if (myCondition)
{
// update the database
DbUpdateEvent(e.Id, e.NewStart, e.NewEnd);
}
// reload events and refresh the scheduler on the client side
DayPilotScheduler1.DataSource = LoadData(); // your method
DayPilotScheduler1.DataBind();
DayPilotScheduler1.UpdateWithMessage("Event resized.");
}
The loading label is now only displayed during a callback (if it takes more than 100ms).