We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

When using GetRecurrenceDateTimeCollection if the RRule passed in contains a negative value for BYSETPOS, the method will not return anything.

As an example the RRULE passed in is as follows:

FREQ=MONTHLY;BYDAY=TU;BYSETPOS=-1
Which means the last tuesday of every month, if we did not have the BYSETPOS param this RRule would mean every Tuesday.
If you pass this RRule into the GetRecurrenceDateTimeCollection method on either the IRecurrenceBuilder or the ScheduleControl it will never return a value, it appears to get stuck.

However if you pass in the following RRule:

FREQ=MONTHLY;BYDAY=TU;BYSETPOS=1

(As you can see the only difference being that we now have a positive value for BYSETPOS)

It will instantly return the DateTime collection.

1 Reply

JP Jagadeesan Pichaimuthu Syncfusion Team April 18, 2019 08:42 AM UTC

Hi Akin, 
 
Thank you for contacting Syncfusion support. 
 
We have analyzed the reported behavior “Set RRule with BYSETPOS as -1 returns no value in GetRecurrenceDateTimeCollection method” as of now schedule doesn’t have support to recur the appointment on last week of the month in Monthly recurrence, but we have logged an feature request for the same, it will be implemented in any of our upcoming release.   We appreciate your patience until then. 
 
Now You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link. 
 
 
Regards, 
Jagadeesan 


Loader.
Live Chat Icon For mobile
Up arrow icon