We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error in EventSettingsModel with DataManager

Thread ID:





140713 Nov 2,2018 05:48 PM UTC Nov 5,2018 04:21 AM UTC Angular - EJ 2 1
Tags: Schedule
Asked On November 2, 2018 05:56 PM UTC


I try to fetch remote data reading this example


There is an error in this line:

public eventSettings: EventSettingsModel = { dataSource: this.dataManger };

The error is:

El tipo 'DataManager' no se puede asignar al tipo 'Object[] | DataManager'.
'DataManager' type cannot be assigned to 'Object[] | DataManager' type
(property) EventSettingsModel.dataSource?: Object[] | DataManager

This is the code

import { Component, ViewEncapsulation } from '@angular/core';
import { PopupOpenEventArgs, MonthService, DayService, WeekService, WorkWeekService, EventSettingsModel } from '@syncfusion/ej2-angular-schedule';
import { DropDownList } from '@syncfusion/ej2-dropdowns';
import { DataManager, UrlAdaptor } from '@syncfusion/ej2-data';
import { citasService } from './citas.service';
import { DateTimePicker } from '@syncfusion/ej2-angular-calendars';

selector: 'app-agenda',
providers: [DayService, WeekService, WorkWeekService, MonthService, citasService],
templateUrl: 'agenda.component.html',
  styles: [`
    .custom-event-editor .e-textlabel {
      padding-right: 15px;
      text-align: right;
    .custom-event-editor td {
      padding: 7px;
      padding-right: 16px;
  encapsulation: ViewEncapsulation.None

export class AgendaComponent {  
  private citasService: citasService
  private dataManger = new DataManager({
    url: this.citasService.url_enpoint + '/getcitasagenda',
    crudUrl: this.citasService.url_enpoint + '/updatedata',
    adaptor: new UrlAdaptor,
    crossDomain: true

  public eventSettings: EventSettingsModel = { dataSource: this.dataManger }; // The error is here

  public showQuickInfo: boolean = false;
  public selectedDate: Date = new Date(2018, 1, 15);

Thank you

Karthigeyan Krishnamurthi [Syncfusion]
Replied On November 5, 2018 04:21 AM UTC

Hi Luis,  
Thank you for contacting Syncfusion support. 
In the provided code example DataManager type is not defined which is the cause for the issue. Kindly include the type as highlighted below to overcome the reported issue. 
export class RemoteDataComponent { 
            public selectedDate: Date = new Date(2017, 5, 5); 
            public currentView: View = 'Week'; 
            public readonly: boolean = true; 
            private dataManger: DataManager = new DataManager({ 
                url: 'https://js.syncfusion.com/demos/ejservices/api/Schedule/LoadData', 
                adaptor: new WebApiAdaptor, 
                crossDomain: true 
            public eventSettings: EventSettingsModel = { dataSource: this.dataManger }; 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon