protected void ASPxScheduler1_BeforeExecuteCallbackCommand(object sender, SchedulerCallbackCommandEventArgs e) { if (e.CommandId.Contains("FLTRES")) { ASPxScheduler1.ApplyChanges(ASPxSchedulerChangeAction.NotifyResourceIntervalChanged); } }
protected void ApplyStatusOption() { ASPxScheduler1.BeginUpdate(); try { AppointmentDisplayOptions options = ASPxScheduler1.ActiveView.GetAppointmentDisplayOptions(); options.StatusDisplayType = (AppointmentStatusDisplayType)cbStatus.Value; } finally { ASPxScheduler1.EndUpdate(); } ASPxScheduler1.ApplyChanges(ASPxSchedulerChangeAction.RenderAppointments); }
void ApplyUserRestrictions() { ASPxScheduler1.BeginUpdate(); try { SchedulerOptionsCustomization options = ASPxScheduler1.OptionsCustomization; options.AllowAppointmentConflicts = chkAllowConflicts.Checked ? AppointmentConflictsMode.Allowed : AppointmentConflictsMode.Forbidden; options.AllowAppointmentCopy = ToUsedAppointmentType(chkAllowCopy); options.AllowAppointmentCreate = ToUsedAppointmentType(chkAllowCreate); options.AllowAppointmentDelete = ToUsedAppointmentType(chkAllowDelete); options.AllowAppointmentDrag = ToUsedAppointmentType(chkAllowDrag); options.AllowAppointmentDragBetweenResources = ToUsedAppointmentType(chkAllowDragBetweenResources); options.AllowAppointmentEdit = ToUsedAppointmentType(chkAllowEdit); options.AllowInplaceEditor = ToUsedAppointmentType(chkAllowInplaceEditor); options.AllowAppointmentMultiSelect = chkAllowMultiSelect.Checked; options.AllowAppointmentResize = ToUsedAppointmentType(chkAllowResize); } finally { ASPxScheduler1.EndUpdate(); } ASPxScheduler1.ApplyChanges(ASPxSchedulerChangeAction.RenderViewMenu); }
protected void ASPxScheduler1_VisibleIntervalChanged(object sender, EventArgs e) { ASPxScheduler1.ApplyChanges(ASPxSchedulerChangeAction.RenderViewMenu); }