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

RadScheduler "no end date" stops

2 Answers 76 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 28 Oct 2015, 05:07 PM

 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 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 02 Nov 2015, 09:26 AM
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
0
Stephen
Top achievements
Rank 1
answered on 02 Nov 2015, 04:39 PM
Thank you this worked!
Tags
Scheduler
Asked by
Stephen
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Stephen
Top achievements
Rank 1
Share this question
or