this.originalData.forEach is not a function in scheduler

2 Answers 215 Views
Scheduler
ixen
Top achievements
Rank 1
Iron
Iron
Iron
ixen asked on 01 Sep 2021, 02:20 PM

Hi

I read data from an service and when scheduler component tried to read data i have following error message

 

4:14:34 PM ERROR [./src/app/core/interceptors/GlobalErrorHandlerService.ts:25] TypeError: this.originalData.forEach is not a function
    at DataBindingDirective.process (index.js:6438)
    at DataBindingDirective.set data [as data] (index.js:6402)
    at setInputsForProperty (core.js:10940)
    at elementPropertyInternal (core.js:9984)
    at Module.ɵɵproperty (core.js:14764)
    at AgendaSchedulerComponent_Template (agenda.scheduler.html:22)
    at executeTemplate (core.js:9579)
    at refreshView (core.js:9445)
    at refreshComponent (core.js:10616)
    at refreshChildComponents (core.js:9242)

 

I have tried to debug without succes to find data with problem

 Object.keys(ev).forEach(function(x){
              console.log('\"'+ev[x]+'\"');
            }); is ok

 

How could find problem field ? Regard

2 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 06 Sep 2021, 07:09 AM

Hello ixen,

Could you give us more details regarding your implementation, in order to be able to help you.

Runnable sample demonstrating the error would be lovely, you can pick some of various data-binding options for the KendoScheduler and elaborate it further in stackblitz by using "Fork" button.

Looking forward to hear from you.

Regards,
Ivan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
ixen
Top achievements
Rank 1
Iron
Iron
Iron
answered on 07 Sep 2021, 01:20 PM

Hi

 

I have resolved my problem

Regards

Tags
Scheduler
Asked by
ixen
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Ivan
Telerik team
ixen
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or