dear telerik team,
Here is a strange problem i am facing with appointmentsaving event of scheduleview. It loops infinite with the fact that i've not added any loop in my code. kindly see below code. Another fact is, below code perfectly works with RadScheduler Control, but not working with Radscheduleview.
kindly respond whats wrong with this.
thanks
Here is a strange problem i am facing with appointmentsaving event of scheduleview. It loops infinite with the fact that i've not added any loop in my code. kindly see below code. Another fact is, below code perfectly works with RadScheduler Control, but not working with Radscheduleview.
private void SchedulerView_AppointmentSaving(object sender, AppointmentSavingEventArgs e)
{
busyIndicator.IsBusy = true;
_ResourceAppointment = _Context.Web.Lists.GetByTitle("Events2011");
_ResourceAppointmentList = new List<
ResourceAppointment
>();
SP.ListItem listItem = _ResourceAppointment.AddItem(new ListItemCreationInformation());
ResourceAppointment newAppointment = e.Appointment as ResourceAppointment;
listItem["Title"] = newAppointment.Subject.ToString();
listItem["EventDate"] = Convert.ToDateTime(newAppointment.Start).ToLocalTime();
listItem["EndDate"] = Convert.ToDateTime(newAppointment.End).ToLocalTime();
listItem["Description"] = newAppointment.Body.ToString(); listItem.Update();
_ResourceAppointmentList.Add(newAppointment);
SchedulerView.AppointmentsSource = _ResourceAppointmentList;
_Context.Load(_ResourceAppointment, list => list.Title);
_Context.ExecuteQueryAsync(OnSaveItemToListSucceeded, OnSaveItemToListFailed);
}
kindly respond whats wrong with this.
thanks