I've got 2 RadDatePickers on my page, one is set to run the following function on OnDateSelected, however, this function fails on the final line, stating that the method isn't supported by the object. What am I doing wrong? How am I meant to be changing the selected date of the second datepicker?
function OneMonthApart(sender, eventArgs) { |
var start = eventArgs.get_newDate(); |
var end = start.setMonth(start.getMonth() + 1); |
var cal = $find("<%= calEndDate.ClientID %>"); |
cal.set_selectedDate(end); |
} |