This question is locked. New answers and comments are not allowed.
Dear telerik,
I've customized scheduleview, adding appointments dynamically and assign them to particular resources. Now when i edit apppointment via editappointment dialog window, it's working perfectly and moving to specified resource, but when i do drag and drop any appointment via mouse from one resource to another resource, it's now working. Everything is updating like start time, end time but resource stays same.
i've put my code into appointmentedited event. check below code. and kindly share what i need to do to move appointments from one resource to another resource by drag and drop functionality.
private void SchedulerView_AppointmentEdited(object sender, AppointmentEditedEventArgs e) { busyIndicator.IsBusy = true; ResourceAppointment editedAppointment = e.Appointment as ResourceAppointment; SP.ListItem listItem = _ResourceAppointment.GetItemById(editedAppointment.AppointmentId); listItem["Title"] = editedAppointment.Subject.ToString(); listItem["EventDate"] = Convert.ToDateTime(editedAppointment.Start).ToLocalTime(); listItem["EndDate"] = Convert.ToDateTime(editedAppointment.End).ToLocalTime(); listItem["Description"] = editedAppointment.Body.ToString(); if (editedAppointment.Resources[0].ResourceName != string.Empty) { foreach (SP.ListItem roomListItem in _RoomItemCol) { if (roomListItem["Title"] == editedAppointment.Resources[0].ResourceName) { FieldLookupValue roomLookUp = new FieldLookupValue(); roomLookUp.LookupId = Convert.ToInt16(roomListItem["ID"]); listItem["Rooms"] = roomLookUp; } } } if (editedAppointment.Resources[1].ResourceName != string.Empty) { foreach (SP.ListItem resourceListItem in _ResourcesItemCol) { if (resourceListItem["Title"] == editedAppointment.Resources[1].ResourceName) { FieldLookupValue resourceLookUp = new FieldLookupValue(); resourceLookUp.LookupId = Convert.ToInt16(resourceListItem["ID"]); listItem["Resources"] = resourceLookUp; } } } if (editedAppointment.Resources[2].ResourceName != string.Empty) { foreach (SP.ListItem bookingStatusListItem in _BookingStatusItemCol) { if (bookingStatusListItem["Title"] == editedAppointment.Resources[2].ResourceName) { FieldLookupValue bookingStatusLookUp = new FieldLookupValue(); bookingStatusLookUp.LookupId = Convert.ToInt16(bookingStatusListItem["ID"]); listItem["BookingStatus"] = bookingStatusLookUp; } } } listItem.Update(); _Context.Load(_ResourceAppointment, list => list.Title); _Context.ExecuteQueryAsync(OnEditItemToListSucceeded, OnEditItemToListFailed); }