Recurrance Rule being produced in the past !

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

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

    Posted 19 Apr in reply to Philip Link to this post

    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

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Plamen
    Admin
    Plamen avatar
    2730 posts

    Posted 22 Apr Link to this post

    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.
Back to Top