Recurrence Question

2 posts, 0 answers
  1. Louisa
    Louisa avatar
    2 posts
    Member since:
    Mar 2015

    Posted 16 Mar 2015 Link to this post

    I am looking at ScheduleView to see if it can fit some of my scenarios. And here is some scenarios I stuck with:

    1) occur 5 times a day on every 2 days

    2) occur every 4 hours a day on every 2 days

    Could I know how can I set this recurrence pattern on code behind?

    Moreover, I have tried a RecurrencePattern like the following:

                pattern = new RecurrencePattern()
                    Frequency = RecurrenceFrequency.Daily,
                    HoursOfDay = new int[] { 4, 8, 12, 16 },
                    Interval = 2,

    and I suppose, on day 1 , the events occur at 4am,8am,12pm and 16 pm. On day 2, no event occur. On day 3 , events occur like on day . On day 4, no event occur.  But turn out, events occur on Day 2,Day 4 as well. Am I misunderstanding the parameter "Interval"? How can I set in this case if I want to occur on every 2 day?
  2. Kalin
    Kalin avatar
    1283 posts

    Posted 17 Mar 2015 Link to this post

    Hello Louise,

    What I can suggest you for this scenario would be use four separate Appointments - each with start and end for each time of the day you need. Afterwards using Frequency = RecurrenceFrequency.Daily and Interval = 2 will allow you achieve the desired. For more details about the RecurrencePattern - check here.

    Hope this helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top