Exemple #1
0
 protected void ASPxPageControl1_TabClick(object source, DevExpress.Web.TabControlCancelEventArgs e)
 {
     if (e.Tab.Text == "Tab1")
     {
         ASPxScheduler.DataBind();
     }
 }
Exemple #2
0
        private void Scheduler_ActiveViewChanging(object sender, ActiveViewChangingEventArgs e)
        {
            ASPxSchedulerListEditor listEditor = (ASPxSchedulerListEditor)this.View.Editor;
            ASPxScheduler           scheduler  = listEditor.SchedulerControl;

            this._schedulerViewType = e.NewView.Type;
            scheduler.DataBind();
        }
 public void AttachTo(ASPxScheduler control)
 {
     timeZoneId = control.Storage.TimeZoneId;
     control.AppointmentDataSource   = this.AppointmentDataSource;
     control.AppointmentRowInserted += new ASPxSchedulerDataInsertedEventHandler(ControlOnAppointmentRowInserted);
     control.AppointmentsInserted   += new PersistentObjectsEventHandler(ControlOnAppointmentsInserted);
     control.AppointmentRowUpdated  += new ASPxSchedulerDataUpdatedEventHandler(ControlOnAppointmentRowUpdated);
     control.AppointmentsChanged    += new PersistentObjectsEventHandler(ControlOnAppointmentsInserted);
     control.DataBind();
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.ASPxScheduler1 = new ASPxScheduler();
        // Enhance performance by switching navbuttons calculations off.
        this.ASPxScheduler1.ActiveView.NavigationButtonVisibility = NavigationButtonVisibility.Never;
        // Use invisible scheduler control.
        ASPxScheduler1.Visible = false;

        ASPxAppointmentStorage appointments = ASPxScheduler1.Storage.Appointments;

        appointments.Mappings.AppointmentId  = "ID";
        appointments.Mappings.Description    = "Description";
        appointments.Mappings.End            = "EndTime";
        appointments.Mappings.RecurrenceInfo = "RecurrenceInfo";
        appointments.Mappings.Start          = "StartTime";
        appointments.Mappings.Subject        = "Subject";
        appointments.Mappings.Type           = "EventType";

        ASPxScheduler1.AppointmentDataSource = ObjectDataSource1;
        ASPxScheduler1.DataBind();
    }
 public void AttachTo(ASPxScheduler control)
 {
     control.ResourceDataSource    = this.ResourceDataSource;
     control.AppointmentDataSource = this.AppointmentDataSource;
     control.DataBind();
 }