protected void DayPilotCalendar1_EventResize(object sender, EventResizeEventArgs e) { // not allowed to resize event no 7 if (e.Id == "7") { DayPilotCalendar1.DataBind(); DayPilotCalendar1.UpdateWithMessage("It's not allowed to resize this event. It was forbidded in the EventResize handler on the server side."); return; } #region Simulation of database update DataRow dr = table.Rows.Find(e.Id); if (dr != null) { dr["start"] = e.NewStart; dr["end"] = e.NewEnd; table.AcceptChanges(); } #endregion DayPilotCalendar1.DataBind(); DayPilotCalendar1.UpdateWithMessage("Event resized"); }
protected void DayPilotCalendar1_EventResize(object sender, EventResizeEventArgs e) { #region Simulation of database update DataRow dr = table.Rows.Find(e.Id); if (e.Recurrent && !e.RecurrentException) { DataRow master = table.Rows.Find(e.RecurrentMasterId); dr = table.NewRow(); dr["id"] = Guid.NewGuid().ToString(); dr["recurrence"] = RecurrenceRule.EncodeExceptionModified(e.RecurrentMasterId, e.OldStart); dr["start"] = e.NewStart; dr["end"] = e.NewEnd; dr["name"] = master["name"]; table.Rows.Add(dr); table.AcceptChanges(); } else if (dr != null) { dr["start"] = e.NewStart; dr["end"] = e.NewEnd; table.AcceptChanges(); } #endregion DayPilotCalendar1.DataBind(); DayPilotCalendar1.Update("Event resized"); }
protected void DayPilotCalendar1_EventResize(object sender, EventResizeEventArgs e) { Dal.ExeSp("SetCalendar", "2", e.NewStart, e.NewEnd, e.Text, e.Value); FillCalendar(); DayPilotCalendar1.DataBind(); DayPilotCalendar1.UpdateWithMessage("Event resized"); }
protected void DayPilotCalendar1_EventResize(object sender, EventResizeEventArgs e) { try { int id = e.Recurrent ? Convert.ToInt32(e.RecurrentMasterId) : Convert.ToInt32(e.Value); //actualizar entregable // new DataManager().MoveTask(id, e.NewStart, e.NewEnd); LoadResources(); // update order UpdateScheduler(); } catch { return; } }
protected void DayPilotCalendar1_EventResize(object sender, EventResizeEventArgs e) { #region Simulation of database update DataRow dr = table.Rows.Find(e.Id); if (dr != null) { dr["start"] = e.NewStart; dr["end"] = e.NewEnd; table.AcceptChanges(); } #endregion DayPilotCalendar1.DataBind(); DayPilotCalendar1.UpdateWithMessage("Event resized"); }
protected void DayPilotMonth1_EventResize(object sender, EventResizeEventArgs e) { #region Simulation of database update DataRow dr = table.Rows.Find(e.Id); if (dr != null) { dr["start"] = e.NewStart; dr["end"] = e.NewEnd; table.AcceptChanges(); } #endregion DayPilotMonth1.DataSource = getData(DayPilotMonth1.VisibleStart, DayPilotMonth1.VisibleEnd); DayPilotMonth1.DataBind(); DayPilotMonth1.Update("Event resized"); }
protected void DayPilotMonth1_EventResize(object sender, EventResizeEventArgs e) { #region Simulation of database update DataRow dr = table.Rows.Find(e.Id); /* * if (dr != null) * { * dr["start"] = e.NewStart; * dr["end"] = e.NewEnd; * table.AcceptChanges(); * } */ if (e.Recurrent && !e.RecurrentException) { DataRow master = table.Rows.Find(e.RecurrentMasterId); dr = table.NewRow(); dr["id"] = Guid.NewGuid().ToString(); dr["recurrence"] = RecurrenceRule.EncodeExceptionModified(e.RecurrentMasterId, e.OldStart); dr["start"] = e.NewStart; dr["end"] = e.NewEnd; dr["name"] = master["name"]; table.Rows.Add(dr); table.AcceptChanges(); } else if (dr != null) { dr["start"] = e.NewStart; dr["end"] = e.NewEnd; table.AcceptChanges(); } #endregion DayPilotMonth1.DataSource = getData(DayPilotMonth1.VisibleStart, DayPilotMonth1.VisibleEnd, (string)DayPilotMonth1.ClientState["filter"]); DayPilotMonth1.DataBind(); DayPilotMonth1.UpdateWithMessage("Event resized"); }
protected void DayPilotCalendar1_OnEventResize(object sender, EventResizeEventArgs e) { Db.MoveAppointment(e.Id, e.NewStart, e.NewEnd); LoadCalendarData(); }
protected void DayPilotCalendar1_OnEventResize(object sender, EventResizeEventArgs e) { //bug in calendar moving end date 30 minutes back UpdateAppointmentTime(e.Id, e.NewStart, e.NewEnd.AddMinutes(30)); }
protected void DayPilotCalendar1_OnEventResize(object sender, EventResizeEventArgs e) { }