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

Populating Recurrence Editor?

0 Answers 116 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 23 Nov 2010, 11:50 PM

I'm having difficulty getting the RecurrenceEditor to populate from existing values.

Here's Telerik's example on how to populate the control:
http://www.telerik.com/help/aspnet-ajax/recurrenceeditor_serverside_populating.html

I created some code to read my selection and it spits out:

 


Recurrence Rule Text: 
DTSTART:20101124T173647Z DTEND:20000102T000000Z RRULE:FREQ=DAILY;UNTIL=20101130T000000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR 
  
Scheduled Dates 
  
11/24/2010 5:36:47 PM
11/25/2010 5:36:47 PM
11/26/2010 5:36:47 PM
11/29/2010 5:36:47 PM

The control's state renders fine between post backs.  I then store the Recurrence Recurrence Rule Text in my database but when I try to read it back to the control later on I get nothing.  None of the items are selected in the control and even the Recurrence Checkbox isn't selected?  So, how do I assign this control it's values?  Here's my assignment code:


protected
void Page_Load(object sender, EventArgs e)
{
    this.RecurrenceEditor1.StartDate = Convert.ToDateTime("11/24/2010 5:36:47 PM");
    this.RecurrenceEditor1.RecurrenceRuleText = "DTSTART:20101124T173647Z DTEND:20000102T000000Z RRULE:FREQ=DAILY;UNTIL=20101130T000000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR";
}

Any help would be appreciated,

Thanks,

No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
Robert
Top achievements
Rank 1
Share this question
or