protected void DayPilotCalendar1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e) { cSchemeReservation scheme = new cSchemeReservation(); dataACC dacc = new dataACC(); scheme = dacc.getDataOnScheme(Convert.ToInt16(e.Id)); tb.Text = scheme.InformationBox.ToString(); tb1.Text = scheme.SchemeStartDate.ToString(); tb2.Text = scheme.SchemeEndDate.ToString(); tb3.Text = scheme.ArtistName.ToString(); tbSchemaId.Text = scheme.SchemeID.ToString(); if (scheme.ReservationID != 0) { btnSubmit.Enabled = false; } else if (scheme.TimeType == 2) { btnSubmit.Enabled = false; } else { btnSubmit.Enabled = true; } }
protected void DayPilotScheduler1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e) { LoadResources(); DayPilotScheduler1.DataSource = DbGetEvents(DayPilotScheduler1.StartDate, DayPilotScheduler1.Days); //DbSelectEvents(DayPilotScheduler1.StartDate, DayPilotScheduler1.EndDate.AddDays(1)); DayPilotScheduler1.DataBind(); UpdatePanelScheduler.Update(); }
protected void DayPilotScheduler1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e) { setDataSourceAndBind(); DayPilotScheduler1.UpdateWithMessage(String.Format("Event {0} clicked.", e.Id)); //throw new Exception("ScrollX: " + DayPilotScheduler1.ScrollX); }
protected void DayPilotScheduler1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e) { setDataSourceAndBind(); DayPilotScheduler1.Update(String.Format("Event {0} clicked.", e.Id)); }