Hi all,
I'm updating EndDate value when StartDate value changes. This seems to work fine, but when I try to save the appointment the old date value appears in the EndDatePicker and I cannot save the appointment.
Here is mycode
JavaScript
function
changeEndDate(sender, e) {
var
endDatePickerID = sender.get_id().replace(
"StartDate"
,
"EndDate"
);
var
endDatePicker = $find(endDatePickerID);
endDatePicker.set_selectedDate(sender.get_selectedDate());
}
c#
RadDatePicker startDate = (RadDatePicker)e.Container.FindControl(
"StartDate"
);
if
(startDate !=
null
){
startDate.ClientEvents.OnDateSelected =
"changeEndDate"
}
Can
The code is copied from this link https://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/change-the-end-date-when-the-start-date-changes
Any help on this?
Thanks a lot