Important BUG on recurring event update

Our powerful JS Calendar component


User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 3390
Joined: Fri Apr 01, 2016 11:08 am

Re: Important BUG on recurring event update

Post by pmiklashevich »

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

Code: Select all

    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!

Pavel Miklashevich - Core Developer

User avatar
tokytok
Posts: 44
Joined: Tue Nov 03, 2020 9:39 am

Re: Important BUG on recurring event update

Post 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 ?


User avatar
Animal
Core Developer
Core Developer
Posts: 166
Joined: Fri Oct 13, 2017 12:36 pm

Re: Important BUG on recurring event update

Post by Animal »

A listener on the beforeShow event of the event editor:

Code: Select all

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

User avatar
Animal
Core Developer
Core Developer
Posts: 166
Joined: Fri Oct 13, 2017 12:36 pm

Re: Important BUG on recurring event update

Post by Animal »

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

Code: Select all

this.eventEditFeature.editingContext.eventRecord.isRecurringTimeSpan

User avatar
tokytok
Posts: 44
Joined: Tue Nov 03, 2020 9:39 am

Re: Important BUG on recurring event update

Post by tokytok »

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


Post Reply