Hi, I have a question regarding if anything special is needed to bind a recurrence editor from a code behind file. I am using an Advanced form where I pull open a Rad Dock to handle my scheduler appointment creation. The problem I have occurs when someone goes to edit a series. I am retrieving the Recurrence rule from the master appointment as well as the original start date and end date and I'm binding them in the Scheduler.FormCreating event in the code behind. It looks something like this:
This binds all of the master appointment data to the Rad Dock even if someone selects to edit the series from an occurrence that isn't the master event. This works fine once the Rad Dock loads and displays the values; however, if a user chooses to go on and triggers a post-back my Recurrence Rule's start and end time isn't being remembered. It shows up in the Rad Dock properly, but does not remember the start and end values after post-back. Here's an example of the values I am getting on load, and those I am getting on post back:
The strange part is that the other aspects of the Recurrence rule are remembered properly which leads me to think maybe I am not binding my StartTime and EndTime values correctly.
Attached is a picture of the Recurrence editor before post-back
StartTime.SelectedDate = TheScheduler.UtcToDisplay(master.Start);
EndTime.SelectedDate = TheScheduler.UtcToDisplay(master.End);
SubjectText.Text = master.Subject;
DescriptionText.Text = master.Description;
This binds all of the master appointment data to the Rad Dock even if someone selects to edit the series from an occurrence that isn't the master event. This works fine once the Rad Dock loads and displays the values; however, if a user chooses to go on and triggers a post-back my Recurrence Rule's start and end time isn't being remembered. It shows up in the Rad Dock properly, but does not remember the start and end values after post-back. Here's an example of the values I am getting on load, and those I am getting on post back:
//On Load (RecurrenceRuleText retrieved from VS2010 Immediate Window)
"DTSTART:20101227T000000Z\r\nDTEND:20101228T000000Z\r\nRRULE:FREQ=DAILY;COUNT=4;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU\r\n"
//On Post-back (RecurrenceRuleText retrieved from VS2010 Immediate Window)
"DTSTART:20000101T000000Z\r\nDTEND:20000102T000000Z\r\nRRULE:FREQ=DAILY;COUNT=4;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU\r\n"
The strange part is that the other aspects of the Recurrence rule are remembered properly which leads me to think maybe I am not binding my StartTime and EndTime values correctly.
Attached is a picture of the Recurrence editor before post-back