Error Start_Date

since i use groups - i always get this error - it still works - but i would like to fix it... have you a idea?
thanks

Isabelle

Active View Error:

Error in callback for watcher "eventSettings": "TypeError: Cannot read property 'startDate' of undefined"


  Render.prototype.refreshDataManager = function () {
        var _this = this;
        var start = this.parent.activeView.startDate();
        var end = this.parent.activeView.endDate();
  1. message: "Cannot read property 'startDate' of undefined"
  2. stack: "TypeError: Cannot read property 'startDate' of undefined↵ at Render.refreshDataManager (webpack-internal:///./node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/renderer.js:136:44)↵ at Schedule.propertyChangeAction (webpack-internal:///./node_modules/@syncfusion/ej2-schedule/src/schedule/base/schedule.js:1290:31)↵ at Schedule.onPropertyChanged (webpack-internal:///./node_modules/@syncfusion/ej2-schedule/src/schedule/base/schedule.js:1267:14)↵ at Schedule.Base.dataBind (webpack-internal:///./node_modules/@syncfusion/ej2-base/src/base.js:119:18)↵ at Schedule.Component.dataBind (webpack-internal:///./node_modules/@syncfusion/ej2-base/src/component.js:185:35)↵ at VueComponent.ComponentBase.dataBind (webpack-internal:///./node_modules/@syncfusion/ej2-vue-base/src/component-base.js:193:27)↵ at VueComponent.<computed> (webpack-internal:///./node_modules/@syncfusion/ej2-vue-base/src/component-decorator.js:43:26)↵ at Watcher.run (webpack-internal:///./node_modules/vue/dist/vue.esm.js:4571:19)↵ at flushSchedulerQueue (webpack-internal:///./node_modules/vue/dist/vue.esm.js:4313:13)↵ at Array.eval (webpack-internal:///./node_modules/vue/dist/vue.esm.js:1988:12)"


  1. parent: Schedule
    1. actionBegin: (...)
    2. actionComplete: (...)
    3. actionFailure: (...)
    4. agendaDaysCount: (...)
    5. allowDragAndDrop: (...)
    6. allowInline: (...)
    7. allowKeyboardInteraction: (...)
    8. allowMultiCellSelection: (...)
    9. allowMultiRowSelection: (...)
    10. allowResizing: (...)
    11. allowServerDataBinding: (...)
    12. bulkChanges: (...)
    13. calendarMode: (...)
    14. cellClick: (...)
    15. cellDoubleClick: (...)
    16. cellHeaderTemplate: (...)
    17. cellTemplate: (...)
    18. changedProperties: (...)
    19. childChangedProperties: (...)
    20. created: (...)
    21. cssClass: (...)
    22. currentAction: null
    23. currentView: "TimelineMonth"

3 Replies

NR Nevitha Ravi Syncfusion Team January 13, 2021 10:10 AM UTC

Hi Isabelle, 

Greetings from Syncfusion Support. 

We suspect that you might not inject the views module properly or not set the current view properly in your application which might cause the reported problem. Please refer to the following sample in which we have groups in the scheduler. 

If the issue persist still at your end please share the following details to provide you the prompt solution at earliest. 
  • Code snippets of scheduler
  • Issue replicating sample or try to replicate the issue in the above sample.

Regards, 
Nevitha 



IF Isabelle Fuchs January 13, 2021 10:18 AM UTC

the Current View is set:
  1. currentView: "TimelineMonth"




     - see in the first message - at the parent "schedule" - i copied the important information...


NR Nevitha Ravi Syncfusion Team January 14, 2021 08:44 AM UTC

Hi Isabelle, 

Thanks for your update. 

We have tried to replicate the issue at our end but unfortunately we couldn’t reproduce it. So we request you to share the following details. 
  • Syncfusion package details
  • Scheduler code snippets
  • Whether you have mapped group and resource property properly
  • Share issue replicating sample or try to replicate the issue in the previously shared sample.

Regards, 
Nevitha 


Loader.
Up arrow icon