private void schedulerControl1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e) { TimeInterval holidayInterval = new TimeInterval(schedulerControl1.SelectedInterval.Start, schedulerControl1.SelectedInterval.End); if (!schedulerControl1.WorkDays.IsWorkDay(holidayInterval.Start)) { e.Allow = false; } }
private void schedulerControl1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e) { bool available = ResourcesAvailabilities.IsIntervalAvailableForResource( schedulerControl1.SelectedResource.Id.ToString(), schedulerControl1.SelectedInterval); errorInfo.Content = (available ? null : ResourcesAvailabilities.WarningMessage); e.Allow = available; }
private void Schedu_AllowAppointmentDelete(object sender, AppointmentOperationEventArgs e) { e.Allow = true; Changed = true; }
private void Schedu_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e) { // e.Allow = false; Changed = true; }
private void schedulerControl1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e) { TimeInterval holidayInterval = new TimeInterval(schedulerControl1.SelectedInterval.Start, schedulerControl1.SelectedInterval.End); if (!schedulerControl1.WorkDays.IsWorkDay(holidayInterval.Start)) e.Allow = false; }
private void schedulerControl1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e) { e.Allow = IsIntervalAllowed(schedulerControl1.ActiveView.SelectedInterval); }
private void schedulerControl1_AllowAppointmentEdit(object sender, AppointmentOperationEventArgs e) { }
public void OnAllowInplaceEditor(object sender, AppointmentOperationEventArgs e) { e.Allow = true; }
private void Control_AllowAppointmentDrag(object sender, AppointmentOperationEventArgs e) { e.Allow = false; }
private void schedulerControl_AllowAppointmentCopy(object sender, AppointmentOperationEventArgs e) { //SchedulerControl1.AllowAppointmentCopy; // e.Appointment.CustomFields.Item(0) = Nothing; // e.Appointment.CustomFields.Item(1) = Nothing; }
private void schedulerControlPrenotazioni_AllowAppointmentDrag(object sender, AppointmentOperationEventArgs e) { if (e.Appointment.LabelId == Prenotazione.LabelDisabled) { e.Allow = false; } }
private void Scheduler_OnAllowAppointmentResize(object sender, AppointmentOperationEventArgs e) { e.Allow = false; }
private void Scheduler_OnAllowInplaceEditor(object sender, AppointmentOperationEventArgs e) { e.Allow = false; }
protected void ASPxScheduler1_AllowAppointmentDrag(object sender, AppointmentOperationEventArgs e) { e.Allow = e.Appointment.Start >= DateTime.Today; }
protected void ASPxScheduler1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e) { e.Allow = ASPxScheduler1.SelectedInterval.Start >= DateTime.Today; }
private void schedulerControl1_AllowAppointmentDelete(object sender, AppointmentOperationEventArgs e) { e.Allow = CanUserModifyThisAppointment(e.Appointment); }
private void schedulerControl_AllowAppointmentDelete(object sender, AppointmentOperationEventArgs e) { }