Hi, I've been creating a page that utilizes 2 Rad controls. A Rad calendar set up in a multi-month view (CalendarSlider) and a Rad Scheduler (TheScheduler). I've been trying to create an interaction where when clicking on a day in the CalendarSlider will cause TheScheduler to change from a MonthlyView (as it is initialized that way) to a DayView.
So far I have been able to capture the CalendarSlider_SelectionChanged event and retrieve the date the user wishes to navigate to. The problem I'm coming across is when I set the values for TheScheduler to change to a DayView and to navigate to the selected date it does not work.
Normally this isn't something that would be desired as it would be much simpler to pull down the calendar that is already built into the scheduler and change the page, but unfortunately these are my requirements.
Here's what my method is looking like currently:
Once the page returns from its postback TheScheduler does not update and I'm not sure why...
So far I have been able to capture the CalendarSlider_SelectionChanged event and retrieve the date the user wishes to navigate to. The problem I'm coming across is when I set the values for TheScheduler to change to a DayView and to navigate to the selected date it does not work.
Normally this isn't something that would be desired as it would be much simpler to pull down the calendar that is already built into the scheduler and change the page, but unfortunately these are my requirements.
Here's what my method is looking like currently:
void CalendarSlider_SelectionChanged(object sender, SelectedDatesEventArgs e)
{
RadDate selectedDay = e.SelectedDates[0];
TheScheduler.SelectedDate = selectedDay.Date;
TheScheduler.SelectedView = SchedulerViewType.DayView;
RadCalendar radPopupCal = TheScheduler.FindControl("SelectedDateCalendar") as RadCalendar;
radPopupCal.SelectedDate = selectedDay.Date;
radPopupCal.ShowOtherMonthsDays = true;
radPopupCal.FocusedDate = selectedDay.Date;
}
Once the page returns from its postback TheScheduler does not update and I'm not sure why...