protected void DayPilotScheduler1_EventUpdate(object sender, EventUpdateEventArgs e) { LoadResources(); DayPilotScheduler1.DataSource = DbGetEvents(DayPilotScheduler1.StartDate, DayPilotScheduler1.Days); //DbSelectEvents(DayPilotScheduler1.StartDate, DayPilotScheduler1.EndDate.AddDays(1)); DayPilotScheduler1.DataBind(); UpdatePanelScheduler.Update(); }
protected void DayPilotScheduler1_EventUpdate(object sender, EventUpdateEventArgs e) { #region Simulation of database update DataRow dr = table.Rows.Find(e.Event.Value); if (dr != null) { dr["start"] = e.New.Start; dr["end"] = e.New.End; dr["column"] = e.New.Resource; dr["name"] = e.New.Text; table.AcceptChanges(); } else { throw new Exception("Event id not found."); } #endregion }