I'm trying to populate a dictionary class with opening and closing times, by date for the scheduler. This will allow me to enable and disable timeslots for specific dates. I have the logic working where it will enable and disable timeslots correctly, but the timing is off in creating the dictionary entries. I first attempted to populate the dictionary class in the page_init event, but the SelectedView of the scheduler is DayView everytime the page_init kicks off. So, I looked at the NavigationCommand event of the scheduler, but that gets kicked off AFTER the TimeSlotCreated event. I can't put the dictionary class creation into the TimeSlotCreated event, because that gets kicked off for every timeslot that gets shown.
What scheduler event is available BEFORE the TimeSlotCreated event, that has the SelectedView that is going to be shown?
In other words, the first time the page is loaded I start with SelectedView=DayView. Then I click on the Week link. Before the TimeSlotCreated event fires, I need to know where I can put my logic to populate the dictionary class where the SelectedView=WeekView. I need the SelectedView to show what the user selected, not what they had before the new selection.
I'm doing this in the Code-behind.
What scheduler event is available BEFORE the TimeSlotCreated event, that has the SelectedView that is going to be shown?
In other words, the first time the page is loaded I start with SelectedView=DayView. Then I click on the Week link. Before the TimeSlotCreated event fires, I need to know where I can put my logic to populate the dictionary class where the SelectedView=WeekView. I need the SelectedView to show what the user selected, not what they had before the new selection.
I'm doing this in the Code-behind.