or
function OnClientAppointmentMoveEnd(sender, eventArgs) { debugger; var appointment = eventArgs.get_appointment(); var recurrState = appointment.get_recurrenceState(); var slotElement = $telerik.$(eventArgs.get_targetSlot().get_domElement()); $get('<%= hid_oldstart.ClientID %>').value = formatDate(appointment.get_start()); $get('<%= hid_oldend.ClientID %>').value = formatDate(appointment.get_end()); if (slotElement.is(".Disabled") || slotElement.parent().is(".Disabled")) { eventArgs.set_cancel(true); } // Calculate the duration of the appointment var appointmentDuration = appointment.get_end() - appointment.get_start(); // The new start time is provided in the event arguments var newStartTime = eventArgs.get_newStartTime(); // Add the duration of the appointment to the new start time to get the new end time var newEndTime = new Date(newStartTime.getTime() + appointmentDuration); var editSeries = eventArgs.get_editingRecurringSeries(); if (slotElement.is(".Disabled") || slotElement.parent().is(".Disabled") || slotElement.is(".ReasonDisabled") || slotElement.parent().is(".ReasonDisabled")) { eventArgs.set_cancel(true); radalert('Moving appointment to this slot is not allowed' , 330, 180, 'Warning!', alertCallBackFn, imgUrl); return false; } else { var list = appointment.get_attributes(); var attr = list.getAttribute('TutorID'); //debugger; var targetResource = eventArgs.get_targetSlot().get_resource(); var newTutor = targetResource.get_key(); attr = newTutor; var aptAttributes = appointment.get_attributes(); aptAttributes.removeAttribute("TutorID"); aptAttributes.setAttribute("TutorID", newTutor); appointment.set_start(newStartTime); appointment.set_end(newEndTime); var state = appointment.get_recurrenceState(); $get('<%= hid_movedendStd.ClientID %>').value = formatDate(newStartTime); $get('<%= hid_moveendEtd.ClientID %>').value = formatDate(newEndTime); $get('<%= hid_moveendTutor.ClientID %>').value = newTutor; //alert(newTutor); var myarr = new Array(); myarr[0] = "movedend"; myarr[1] = formatDate(newStartTime); myarr[2] = formatDate(newEndTime); myarr[3] = newTutor; alert(newTutor); $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest(myarr); } }@media screen and (-webkit-min-device-pixel-ratio:0) {.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"] { background-repeat: no-repeat; background-position: 0 3px!important;}.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"]:hover { background-position: -40px 3px!important;}.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"]:checked { background-position: 0 -37px!important;}.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"]:hover:checked { background-position: -40px -37px!important;}.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"][disabled], .RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"][disabled]:hover { background-position: 0 -117px!important;}.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"][disabled]:checked, .RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"][disabled]:checked:hover { background-position: 0 -157px!important;}.RadForm_MetroTouchNeutral.rfdRadio input[type="radio"] { background-repeat: no-repeat; background-position: -80px 3px!important;}.RadForm_MetroTouchNeutral.rfdRadio input[type="radio"]:hover { background-position: -120px 3px!important;}.RadForm_MetroTouchNeutral.rfdRadio input[type="radio"]:checked { background-position: -80px -37px!important;}.RadForm_MetroTouchNeutral.rfdRadio input[type="radio"]:hover:checked { background-position: -120px -37px!important;}.RadForm_MetroTouchNeutral.rfdCheckbox input[type="radio"][disabled], .RadForm_MetroTouchNeutral.rfdCheckbox input[type="radio"][disabled]:hover { background-position: -80px -117px!important;}.RadForm_MetroTouchNeutral.rfdCheckbox input[type="radio"][disabled]:checked, .RadForm_MetroTouchNeutral.rfdCheckbox input[type="radio"][disabled]:checked:hover { background-position: -80px -157px!important;}}