maximumCount with GetRecurrenceDates on recurrence editor generates too many dates

Hi, I am using the recurrence editor to parse the recurrencerule from the editor. If I set maximumCount (to override the default of 43) and I set End Count to for example 5 times, I get the maximumCount amount. I expect to get 5 appointments.

This is if I use GetRecurrenceDates on the recurrence editor component, but also if I use from RecurrenceDateGenerator.GetRecurrenceDateTimeCollection from blazor internal.

Kind regards,
Wietze Blokstra

5 Replies 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team March 18, 2021 01:46 PM UTC

Hi Wietze, 

Greetings from Syncfusion Support..! 

We have prepared a sample to reproduce your reported issue “need to get the specific events based on the end count” unfortunately, we were unable to reproduce your reported problem and the sample can be downloaded from the following link. We have tried the following ways to replicate the issue at our end. 

  1. We have used the using GetRecurrenceDates public method of the SfRecurrenceEditor and the dates are properly getting based on the end date passing.
 

<SfButton CssClass="e-flat" IsPrimary="true" @onclick="OnToggleClick">Click</SfButton> 
<SfRecurrenceEditor @ref="RecurrenceEditor"></SfRecurrenceEditor> 

@code { 
    SfRecurrenceEditor RecurrenceEditor; 
    public void OnToggleClick(MouseEventArgs args) 
    { 
        RecurrenceEditor.GetRecurrenceDates(DateTime.Now, "FREQ=DAILY;INTERVAL=2;", "", 5); 
    } 

Note: We suspect that there may be mismatch in the argument and for your reference, kindly refer to the below UG link, 

And for further reference, we have taken a screenshot of the above sample, 
 

Kindly refer to the above sample, if the issue persist still at your end share the below details to validate your reported issue and serve you better. 
  • Kindly share the entire SfRecurrenceEditor rendering code snippets.
  • Kindly confirm whether the above sample is working properly at your end or not ?
  • If possible, replicate the issue in the above sample.
  • Share the issue replicating sample (if possible) in order to validate further at our end.

We will be happy to assist you..! 

Regards, 
Hareesh 



WB Wietze Blokstra March 19, 2021 07:05 AM UTC

Hi Hareesh,

I don't think you reproduced my issue correctly. Could you try the following?

RecurrenceEditor.GetRecurrenceDates(DateTime.Now, "FREQ=DAILY;INTERVAL=2;COUNT=5", "", 100);

The user chooses a count of 5, but gets 100. The maximumCount should be the maximum, not the number of appointments you get every time.

I get the same issue with an end date with a monthly recurrence:
RecurrenceEditor.GetRecurrenceDates(DateTime.Now, "FREQ=MONTHLY;BYDAY=FR;BYSETPOS=2;INTERVAL=1;UNTIL=20210531T000000Z", "", 100);

Here I expect 2 appointments.if I run this today (March 18, 2021). I expect an appointment for april 9th and may 14th.

I made a work around by modifying this example you profided in thread 159743
https://www.syncfusion.com/downloads/support/forum/159743/ze/ScheduleRecurrenceHelper(updated)48749198.zip (this helper has the same issues)

And if you are looking at this, maybe you can also fix the creation of dates on the 31st of the month with this rrule: 
FREQ=MONTHLY;INTERVAL=1;UNTIL=20210731T000000Z;BYMONTHDAY=30;

Kind regards,
Wietze


HB Hareesh Balasubramanian Syncfusion Team March 19, 2021 03:04 PM UTC

Hi Wietze, 

Thanks for the update. 

We could reproduce the reported issue “We are not able to get the number of rendered dates using GetRecurrenceDates public method” and confirm this as defect at our end. We have logged the below bug report. The fix will be included at end of March 2021. We appreciate your patience until then. 
  
  
Regards,  
Hareesh 



NR Nevitha Ravi Syncfusion Team April 1, 2021 07:18 AM UTC

Hi Wietze, 

The reported issue “rendered dates using GetRecurrenceDates method is not proper’’ is rescheduled for next weekly patch release expected to be rolled out on April 6th, so we appreciate your patience until then. 

 

Please let us know if you need any further assistance. 

Regards, 
Nevitha 



NR Nevitha Ravi Syncfusion Team April 7, 2021 12:58 PM UTC

Hi Wietze, 
 
Thanks for your patience. 
 
The reported issue ‘dates are not generated properly when maximum count is provided’ has been resolved in our latest weekly patch release version 19.1.0.55, so please upgrade your version to avail the fix. 
 
 
Please let us know if you need any further assistance. 
 
Regards, 
Nevitha 


Marked as answer
Loader.
Up arrow icon