Our powerful JS Calendar component


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

Pavlo Miklashevych
Sr. Frontend Developer


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 ?


Post by Animal »

A listener on the beforeShow event of the event editor:

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

Post by Animal »

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

this.eventEditFeature.editingContext.eventRecord.isRecurringTimeSpan

Post by tokytok »

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


Post Reply