Page 2 of 2

Re: Important BUG on recurring event update

Posted: Tue Jan 12, 2021 3:00 pm
by pmiklashevich

You can make the resource field read only in the editor:

    features : {
        eventEdit : {
            editorConfig : {
                items : {
                    resourceField : {
                        readOnly : true
                    }
                }
            }
        },

Please find more info here: https://www.bryntum.com/docs/calendar/#guides/customization/eventedit.md#customizing-the-fields

Regarding the ticket. We're releasing 4.0.7 right now, and the fix is going to be a part of the next 4.0.8 release.

Cheers!


Re: Important BUG on recurring event update

Posted: Wed Jan 13, 2021 3:50 pm
by tokytok

Thanks, but it put the readOnly on insert too.
So we can't choose the resource on creation.
I need to just lock resource when the user update a recurring event, is it possible ?


Re: Important BUG on recurring event update

Posted: Wed Jan 13, 2021 4:58 pm
by Animal

A listener on the beforeShow event of the event editor:

    features : {
        eventEdit : {
            editorConfig : {
                listeners : {
                    beforeShow() {
                       this.widgetMap.resourceField.readOnly = !this.eventEditFeature.editingNewlyCreatedEvent;
                    }
                }
            }
        }

Re: Important BUG on recurring event update

Posted: Wed Jan 13, 2021 5:00 pm
by Animal

To test whether you are starting to edit a recurring event, look at

this.eventEditFeature.editingContext.eventRecord.isRecurringTimeSpan

Re: Important BUG on recurring event update

Posted: Thu Jan 14, 2021 10:01 am
by tokytok

Thanks, it work !
Now I'm waiting for the 4.0.7 :)