void UpdateTimeRulers()
 {
     ASPxScheduler1.BeginUpdate();
     try {
         UpdateClientTimeRuler(ASPxScheduler1.DayView);
         UpdateClientTimeRuler(ASPxScheduler1.WorkWeekView);
     } finally {
         ASPxScheduler1.EndUpdate();
     }
 }
 protected void ApplyStatusOption()
 {
     ASPxScheduler1.BeginUpdate();
     try
     {
         AppointmentDisplayOptions options = ASPxScheduler1.ActiveView.GetAppointmentDisplayOptions();
         options.StatusDisplayType = (AppointmentStatusDisplayType)cbStatus.Value;
     }
     finally
     {
         ASPxScheduler1.EndUpdate();
     }
     ASPxScheduler1.ApplyChanges(ASPxSchedulerChangeAction.RenderAppointments);
 }
Beispiel #3
0
 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);
 }