var endTimePicker = $find("<%= rdtpAppointments_EndTime.ClientID %>");
var newValue = new Date(eventArgs.get_newDate());
var oldValue = new Date(eventArgs.get_oldDate());
var difference = Math.round((newValue - oldValue) / 86400000);
var oldDate = new Date(endTimePicker.get_selectedDate())
var newDate = oldDate.setDate(oldDate.getDate()+difference);
endTimePicker.set_selectedDate() = newDate;
}
Regards,
Maria Ilieva
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.