SCHEDULER - Allow edit/delete series even if some occurrences are in the past

Hi Team,

I am using dhtmlx scheduler version 6.0.5 in my angular 14 app.I have a scenario where I need to edit or delete a recurring series even though some occurrences are in the past. Since I am using limit_start, limit_end and limit_view, I am not able to edit/delete a series if some of the occurrences are in the past. Is there any way I can handle this scenario?

Hello @rajeswarij,

Yes, I reproduced the described behavior and already sent request to the dev team. They will consider on adding option to avoid blocking of recurring series by limit plugin for the described condition.

Currently, you can disable the limit for recurring events from the onDblClick event, like follows:

scheduler.attachEvent("onAfterLightbox", function (){
    scheduler.config.check_limits = true;
});
scheduler.attachEvent("onDblClick", function (id, e){
    let ev = scheduler.getEvent(id);
    if(ev.event_pid){
        scheduler.config.check_limits = false;
    }

    return true;
});

Here is a demo:
https://snippet.dhtmlx.com/l0o98vnn

Kind regards,

Hi,

I checked the demo you provided. I clicked the event on July 4th and tried to edit the series but the lightbox did not open.

Steps to reproduce:

  • Click event on July 4th
  • Click EDIT button
  • Then click EDIT SERIES button. Nothing happens now. Expected scenario is lightbox to be open to allow to edit series

Hello @rajeswarij,

Of thank you for notifying, the provided workaround fixes editing through double click popup, but doesn’t affect editing through quick_info popup.

Here is the updated demo, that also fixes editing through quick_info popup:
https://snippet.dhtmlx.com/0m6zxxy6

Kind regards,