Problems with recurrencecombo configuration in calendar

Ask for help related to our Calendar 2.x version
Post Reply
User avatar
devmx
Posts: 2
Joined: Sun May 17, 2020 11:37 pm

Problems with recurrencecombo configuration in calendar

Post by devmx »

I can't hide the recurrencecombo when I used the recurringEvents : true, I need to use this behavior but I don't need the recurrencecombo component and I don't know how to hide, maybe I am doing something wrong.
this a part of my code :

Code: Select all

eventEditor: {
		editorConfig: {
		    showDeleteButton: false,
		    recurrenceCombo: {
		        hidden: true
		    },
		    fieldsPanelConfig : {
		        xtype  : 'container',
		        layout: { type: 'vbox', align: 'stretch' },
		        items: [
                    { 
and this is the error :

Code: Select all

bryntum-calendar.js:877 Uncaught TypeError: _0xbd64x2[_0xdfef[4255]][_0xdfef[837]] is not a function
    at constructor.updateRecurringEvents (bryntum-calendar.js:877)
    at constructor.setter [as setRecurringEvents] (ext-all-debug.js:11193)
    at Ext.Configurator.configure (ext-all-debug.js:11778)
    at constructor.initConfig (ext-all-debug.js:13262)
    at constructor (ext-all-debug.js:71704)
    at new Cal.widget.form.EventEditor (ext-all-debug.js:13997)
    at eval (eval at getInstantiator (ext-all-debug.js:15884), <anonymous>:3:8)
    at Object.create (ext-all-debug.js:16402)
    at constructor.initComponent (bryntum-calendar.js:877)
    at constructor.callParent (ext-all-debug.js:13111)
thanks for your help.

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

Re: Problems with recurrencecombo configuration in calendar

Post by pmiklashevich »

There is a special config for that on event editor: https://www.bryntum.com/docs/calendar-for-extjs/#!/api/Sch.widget.EventEditor-cfg-recurringEvents

Code: Select all

editorConfig: {
    recurringEvents: false,
    ....
}
Pavel Miklashevich - Core Developer

User avatar
devmx
Posts: 2
Joined: Sun May 17, 2020 11:37 pm

Re: Problems with recurrencecombo configuration in calendar

Post by devmx »

I'am grateful for your help and answer. I've done but it show me the next error :

Uncaught TypeError: Cannot read property 'getFloatingComponents' of null
at constructor.getRecurrableEventFloatingComponents (bryntum-calendar.js:877)
at constructor.getFloatingComponents (bryntum-calendar.js:877)
at constructor.addIgnoreCls (bryntum-calendar.js:877)
at constructor.afterRender (bryntum-calendar.js:877)
at constructor.finishRender (ext-all-debug.js:68801)
at constructor.render (ext-all-debug.js:68547)
at constructor.doAutoRender (ext-all-debug.js:68640)
at constructor.show (ext-all-debug.js:74721)
at constructor.beforeShowRecord (bryntum-calendar.js:877)
at constructor.<anonymous> (ext-all-debug.js:21372)

I had read about this especial config in Sch.widget.EventEditor but for this error I discard it.
Maybe, am I missing something ?
For complement the topic a use especial config recurringEvents in the panel calendar configuration :

Code: Select all

Ext.define('xx.view.xx.CalendarAgenda', {
	extend: 'Cal.panel.Calendar',	
	recurringEvents: true
I have configured with true because I need the recurrence in my calendar.

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

Re: Problems with recurrencecombo configuration in calendar

Post by pmiklashevich »

Hello,

There are 2 "recurringEvents" configs:

- The first one is on Calendar panel. recurringEvents is true by default so the feature is enabled and recurring events will be shown. If you set it to `false` here, the feature will be disabled, no recurring events will be shown, and now recurring fields will be shown in the EventEditor. You can try it out in Recurrence demo locally:
Please modify examples/recurrence/app/view/Main.js and open the demo in a browser tab to see the result.

Code: Select all

Ext.define('Cal.examples.recurrence.view.Main', {
    extend : 'Cal.panel.Calendar',
    xtype  : 'recurrencecalendar',

    recurringEvents : false,
Снимок экрана 2020-05-20 в 10.34.45.png
Снимок экрана 2020-05-20 в 10.34.45.png (233.09 KiB) Viewed 232 times
- The second is on EventEditor. recurringEvents is true by default too. If you set it to `false` here, the feature will stay enabled, but there will be no recurrence fields in the editor. To provide editor configs to calendar need to use editor plugin config, then editor widget config. Again you can try it out in Recurrence demo locally:
Please modify examples/recurrence/app/view/Main.js and open the demo in a browser tab to see the result.

Code: Select all

Ext.define('Cal.examples.recurrence.view.Main', {
    extend : 'Cal.panel.Calendar',
    xtype  : 'recurrencecalendar',

    recurringEvents : true, // `true` by default
    // plugin config
    eventEditor : {
        // widget config
        editorConfig : {
            recurringEvents : false // `true` by default
        }
    },
Снимок экрана 2020-05-20 в 11.00.21.png
Снимок экрана 2020-05-20 в 11.00.21.png (257.24 KiB) Viewed 232 times
I don't see the error you provided. Please provide steps to reproduce the issue, or submit a runnable testcase that we can check. You can modify any of our demos for this.

Best regards,
Pavel
Pavel Miklashevich - Core Developer

Post Reply