This is a migrated thread and some comments may be shown as answers.
Scheduler daily rule
1 Answer 8 Views
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 18 Mar 2018, 11:14 AM
Is it possible to use the value of recurrenceRule FREQ=DAILY with BYDAY, e.g. "FREQ=DAILY;COUNT=4;INTERVAL=3;BYDAY=MO,TU,WE,TH,FR"?
I reproduced the situation when have an incorrect result http://dojo.telerik.com/oqiJAKoR and received dates «16, 19, 22, 28» instead of «16, 21, 26, 29».

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 20 Mar 2018, 01:52 PM
Hi Simon,

When the FREQ option is set to DAILY, the INTERVAL will be counted on a daily basis. All days in the week will be taken into account in the interval calculation logic. The BYDAY option will not be taken into account when positioning the occurrences against the INTERVAL, but it will be applied as filter after the intervals have been calculated.

Calculating only the interval, in the discussed scenario the 4 occurrences will be set on 16, 19, 22 and 25. Nevertheless, as BYDAY option is also used, it will be taken into account after calculating the above rule. Therefore, the last occurrence, which is on Sunday, should be shifted with 3 additional days. Therefore, it will be displayed on 28th.

If you think that the current recurrence rule calculation logic could be improved in some manner, I would suggest you to log you idea on our Feedback portal. Based on the support it receives from the community, we will decide on whether to proceed with its implementation or not.

I hope, that the above explains the case. If you have any other questions, please do not hesitate to contact us.

Regards,
Veselin Tsvetanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Simon
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or