I basically have this code:
Now, let's say that here is an appointment on June 20. If, while in monthly view, I double-click in a cell on or before June 20 to insert an appointment, everything works fine. But, if I click on a cell after June 20, when I click "more" all the appointments clear out of the calendar, the new appointment box stays there, and I have to click "more" a second time to get to the more detailed insert box. The first "more" click doesn't cause scheduler_AppointmentCommand to fire, but the second one does.
| private void Page_Load(object sender, EventArgs e) | |
| { | |
| if (!IsPostBack) | |
| { | |
| Session.Remove(AppointmentsKey); | |
| } | |
| scheduler.DataSource = Appointments; | |
| } | |
| private const string AppointmentsKey = | |
| "Telerik.Examples.Scheduler.BindToList_Apts"; | |
| private DataSet Appointments | |
| { | |
| get | |
| { | |
| DataSet sessApts = Session[AppointmentsKey] as DataSet; | |
| if (sessApts == null) | |
| { | |
| sessApts = new DataSet(); | |
| sessApts.ReadXml(Server.MapPath("appointments.xml")); | |
| Session[AppointmentsKey] = sessApts; | |
| } | |
| return sessApts; | |
| } | |
| } | |
| // For debug: | |
| protected void scheduler_AppointmentCommand(object sender, AppointmentCommandEventArgs e) | |
| { | |
| Response.Write("Command: " + e.CommandName); | |
| } |
Now, let's say that here is an appointment on June 20. If, while in monthly view, I double-click in a cell on or before June 20 to insert an appointment, everything works fine. But, if I click on a cell after June 20, when I click "more" all the appointments clear out of the calendar, the new appointment box stays there, and I have to click "more" a second time to get to the more detailed insert box. The first "more" click doesn't cause scheduler_AppointmentCommand to fire, but the second one does.