Scheduler daily rule

2 posts, 0 answers
  1. Simon
    Simon avatar
    57 posts
    Member since:
    May 2008

    Posted 18 Mar 2018 Link to this post

    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».
  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    1220 posts

    Posted 20 Mar 2018 Link to this post

    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.
Back to Top