This is a migrated thread and some comments may be shown as answers.

Binding Recurrence Editor from code behind

4 Answers 88 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian King
Top achievements
Rank 1
Brian King asked on 20 Dec 2010, 10:58 PM
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:

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

4 Answers, 1 is accepted

Sort by
0
Brian King
Top achievements
Rank 1
answered on 23 Dec 2010, 06:48 PM
I was toying around with this some more and I may have gotten it to work. I added the databind method to the start and end dates and it's worked sporadically, which leads me to think it may be tied to something else. I'm going to step through some more code and see if I can pinpoint the time when the error occurs.
0
Peter
Telerik team
answered on 24 Dec 2010, 12:24 PM
Hi Brian,

Thank you for sharing your findings in the forum. We have also experienced some issues with the Recurrence editor, so we are conducting a separate investigation. You could help us a lot if you open a support ticket and send us a simple working demo of the problem. Your effort will be rewarded with Telerik points.


Greetings,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Brian King
Top achievements
Rank 1
answered on 27 Dec 2010, 11:11 PM
Thanks Peter, I'm close to having a working demo ready, but it's taken a bit of effort to strip everything out considering the original project used DNN with a separate script manager. I have been able to isolate it, but events are not firing properly at the moment so once I can get that fixed I will be opening a ticket.
0
Brian King
Top achievements
Rank 1
answered on 28 Dec 2010, 07:04 PM
Alright I've submitted the ticket with the ID# 379659 I'll update this thread with any information I find for those following.
Tags
Scheduler
Asked by
Brian King
Top achievements
Rank 1
Answers by
Brian King
Top achievements
Rank 1
Peter
Telerik team
Share this question
or