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

A demo with Recurrence?

2 Answers 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Karl Wilkens
Top achievements
Rank 1
Karl Wilkens asked on 23 Apr 2011, 06:17 PM
Hi, I have looked quite hard at what you have on line and a working recurrence sample seems to be absent. If I am wrong - wonderful - please point me to it, but otherwise I am trying to just see this work in a dirt simple way. I have this XML

<?xml version="1.0" encoding="utf-8"?>
<Appointments>
  <Appointment>
    <ID>3</ID>
    <Subject>testing 123</Subject>
    <Description>testing</Description>
    <Start>2011-04-23T10:30Z</Start>
    <End>2011-04-23T11:30Z</End>
    <RecurrenceRule><![CDATA[DTSTART:20110423T103000Z
DTEND:20110423T113000Z
RRULE:FREQ=WEEKLY;UNTIL=20120424T000000Z;INTERVAL=52;BYDAY=TU
]]></RecurrenceRule>
  </Appointment>
</Appointments>

I am attaching to this as follows

Protected Overrides Sub OnInit(ByVal e As EventArgs)
        MyBase.OnInit(e)
        RadScheduler1.Provider = New XmlSchedulerProvider(Server.MapPath("~/App_Data/Appointments.xml"), True)
    End Sub

What I would like to see is anything at all show up in the scheduler. Its not clear from the documentation as to how to make this work. Thanks.

2 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 26 Apr 2011, 01:23 PM
Hi Karl Wilkens,

You RadScheduler is bound correctly but you are not able to see your appointment. The reason is the RecurrenceRule. As I see you are creating recurrence on each Tuesday to recur every 52 weeks until 24 April 2012. As the year has 52 weeks you expect two occurences - on 23 April 2011 and one until 24 April 2012. The reason why you can not see any occurence in April 2011 is because 23 April 2011 for example is not Tuesday but Saturday. However if you go to April 2012 you will see your occurence appearing exactly on 24 April 2012 as it is Tuesday and 52 weeks are passed since your previous expected occurence.

Hope this is clear now. Please let me know if you have further questions.

Regards,
Veronica Milcheva
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
Karl Wilkens
Top achievements
Rank 1
answered on 26 Apr 2011, 01:35 PM
Many thanks for the clarification. We will need to apply some validation to prevent certain scenarios where people try to set too many options in the recurrence editor, but this should be quite workable. Thank you!
Tags
Scheduler
Asked by
Karl Wilkens
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Karl Wilkens
Top achievements
Rank 1
Share this question
or