Recurrance Rule being produced in the past !

3 posts, 0 answers
  1. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 19 Apr 2016 Link to this post

    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();
    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. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 19 Apr 2016 in reply to Philip Link to this post

    And the ocurrance data that is being saved is as follows



  3. Plamen
    Plamen avatar
    3040 posts

    Posted 22 Apr 2016 Link to this post


    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.

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top