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

Recurrence Question

1 Answer 77 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Louisa
Top achievements
Rank 1
Louisa asked on 16 Mar 2015, 07:33 AM
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?

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 17 Mar 2015, 02:38 PM
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.

Regards,
Kalin
Telerik
 

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.

 
Tags
ScheduleView
Asked by
Louisa
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or