RadScheduler "no end date" stops

3 posts, 0 answers
  1. Stephen
    Stephen avatar
    6 posts
    Member since:
    Apr 2009

    Posted 28 Oct 2015 Link to this post

     Hello,

    I am having an issue where I have set a schedule to have no end date, but it does not give us enough occurrences. It gives me only 98. When I look inside the ReccurenceRule object, it looks like it should be giving me more than 98 occurrences. My schedule does have one exception date. I have attached screenshots of my parse rule, list of given occurrences, the pattern, and the range allowed. Is this a bug in Telerik or do I have something set incorrectly?

    My parse rule:

    {DTSTART:20140109T170000Z
    DTEND:20140109T200000Z
    RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=2;BYDAY=TH
    EXDATE:20150312T170000Z
    }

  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 02 Nov 2015 Link to this post

    Hello,

    The issue here is the MaximumCandidates property of the RecurrenceRule. By default it's set to 3000, and in your case this only results in 98 occurrences being found. Try increasing the property to 100000 for instance and you should get more results. For example:
    RecurrenceRule rrule;
    if (RecurrenceRule.TryParse(@"DTSTART:20140109T170000Z
    DTEND:20140109T200000Z
    RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=2;BYDAY=TH
    EXDATE:20150312T170000Z", out rrule))
    {
        rrule.MaximumCandidates = 100000;
        var count = rrule.Occurrences.Count();
    }


    Regards,
    Bozhidar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stephen
    Stephen avatar
    6 posts
    Member since:
    Apr 2009

    Posted 02 Nov 2015 Link to this post

    Thank you this worked!
Back to Top