Important BUG on recurring event update
- pmiklashevich
- Core Developer
- Posts: 3390
- Joined: Fri Apr 01, 2016 11:08 am
Re: Important BUG on recurring event update
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
Re: Important BUG on recurring event update
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
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;
}
}
}
}
Re: Important BUG on recurring event update
To test whether you are starting to edit a recurring event, look at
Code: Select all
this.eventEditFeature.editingContext.eventRecord.isRecurringTimeSpan
Re: Important BUG on recurring event update
Thanks, it work !
Now I'm waiting for the 4.0.7