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

Recurrance Rule being produced in the past !

2 Answers 15 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 19 Apr 2016, 11:28 AM
Ok for some reason I have a recurrance dated for 19/04/2016 but for some reason its giviing me recurrances in the past instead of the future.
01.if (chkWeekly.Checked == true)
02.                {
03.                    //Creating a Weekly Recurrence rule
04.                    int interval = 2;
05.                    RecurrenceRange range = new RecurrenceRange();
06. 
07.                    range.Start = Convert.ToDateTime(rdStartShift.SelectedDate);
08.                    range.EventDuration = TimeSpan.FromMinutes(30);
09.                    range.MaxOccurrences = 3;
10.                    RecurrenceDay recurrenceDay  = (RecurrenceDay) Convert.ToInt32(rdDayOfWeek.SelectedValue);
11.                    // _shifts.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range).ToString();
12.                    DayOfWeek startDayOfWeek = DayOfWeek.Monday;
13.                    _shifts.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range, startDayOfWeek).ToString();
14.   }


I am sure if i set weekly which I have done acording to the option it should set them in the future.

2 Answers, 1 is accepted

Sort by
0
Philip
Top achievements
Rank 1
answered on 19 Apr 2016, 12:25 PM

And the ocurrance data that is being saved is as follows

 

DTSTART:20160419T100000Z
DTEND:20160419T103000Z
RRULE:FREQ=WEEKLY;COUNT=3;INTERVAL=2;BYDAY=MO;WKST=MO

0
Plamen
Telerik team
answered on 22 Apr 2016, 11:00 AM
Hi,

Thank you for getting back to us.

It seems that the issue is happening if you set an range start of the recurrence rule that is from the past and that is whey it is starting from the past. Would you please try to replicate such appointment with some of our online demos so we could inspect it and be more helpful wit a possible solution.

Regards,
Plamen
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Scheduler
Asked by
Philip
Top achievements
Rank 1
Answers by
Philip
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or