Scheduler doesnt show Events after Update to Angular 9

The Scheduler Component doesn't Show my Events after I was updating my Angular to Version 9. There's no Error/Warning in the Console and I cant find the Problem on any existing Thread. I was waiting for the Latest Release (of the Scheduler Component), but this Update didn't solve my Problem.
Please Help Me.

installed Packages:
    "@angular/animations""9.0.5",
    "@angular/cdk""9.2.0",
    "@angular/common""9.0.5",
    "@angular/compiler""9.0.5",
    "@angular/core""9.0.5",
    "@angular/flex-layout""9.0.0-beta.29",
    "@angular/forms""9.0.5",
    "@angular/material""9.2.0",
    "@angular/material-moment-adapter""9.2.0",
    "@angular/platform-browser""9.0.5",
    "@angular/platform-browser-dynamic""9.0.5",
    "@angular/router""9.0.5",
    "@syncfusion/ej2-angular-base""18.1.42",
    "@syncfusion/ej2-angular-schedule""18.1.42",
    "@syncfusion/ej2-angular-navigations""18.1.42",
    "@syncfusion/ej2-ng-base""16.2.55",
    "@syncfusion/ej2-angular-calendars""18.1.42",

The View in the Browser:

Component.html:
<ejs-schedule #scheduleObj height='100%' locale='de-CH' [firstDayOfWeek]="1"
                    [(selectedDate)]="currentDate" (selectedDateChange)="onSelectedDateChange($event)" 
                    [(currentView)]="currentView" (currentViewChange)="onCurrentViewChange($event)"
                    [eventSettings]='eventSettings' [rowAutoHeight]="rowAutoHeight" [showWeekNumber]="true"
                    [timeScale]="timeScale" [group]="group" [showHeaderBar]="true" [showQuickInfo]="false"
                    (popupOpen)="onPopupOpen($event)" (popupClose)="onPopupClose($event)"
                    (actionBegin)="onActionBegin($event)" (actionComplete)="onActionComplete($event)"
                    (eventRendered)="onEventRendered($event)" (renderCell)="onRenderCell($event)" fxFlex>

        <e-header-rows>
          <e-header-row option='Week'>
            <ng-template #template let-data>
                <span [innerHTML]="getWeekDetails(data)"></span>
            </ng-template>
          </e-header-row>
          <e-header-row option='Date'>
            <ng-template #dateHeaderTemplate let-data>
              <span [innerHTML]="getDateHeaderText(data)"></span>
          </ng-template>
          </e-header-row>
        </e-header-rows>
        <e-views>
          <e-view option="TimelineWorkWeek">
            <ng-template #eventTemplate let-data>
              <div class="event-container" *ngIf="data.type === 'project'" fusePerfectScrollbar>
                  <div *ngIf="data.project" class="subject event-text-wrap" [style.background]="data.SecondaryColor"
                        [style.border-color]="data.PrimaryColor">{{ data.project.nr }} - {{ data.project.customer }}</div>
                  <div *ngIf="!data.project" class="subject event-text-wrap" [style.background]="data.SecondaryColor"
                        [style.border-color]="data.PrimaryColor">{{ data.remarks }}</div>

                  <div class="states">
                    <div>
                      <mat-icon *ngIf="data.published" matTooltip="Sichtbar für Mitarbeiter">visibility</mat-icon>
                    </div>
                    
                    <div class="task-tags">
                      <div class="tag" *ngFor="let task of data.tasks" matTooltip="{{task.text}}">
                        <mat-icon *ngIf="task.completed">check_box</mat-icon>
                        <mat-icon *ngIf="!task.completed">check_box_outline_blank</mat-icon>
                      </div>
                    </div>
                  </div>
              </div>

              <div class="event-container" *ngIf="data.type === 'absence'" fusePerfectScrollbar>
                <div class="subject event-text-wrap">{{ data.name }}{{ data.duration > 0 ? ' (' + (data.duration | timedisplay) + ')' : '' }}</div>
                <div [ngSwitch]="data.isApproved">
                  <mat-icon *ngSwitchCase="false" matTooltip="In Genehmigung">hourglass_empty</mat-icon>
                  <mat-icon *ngSwitchCase="true" matTooltip="Genehmigt">thumb_up</mat-icon>
                </div>
              </div>

            </ng-template>
          </e-view>
          <!-- <e-view option="TimelineMonth">
          </e-view> -->
        </e-views>

        <e-resources>
          <e-resource name='Employees' field='resourceIds' title='Mitarbeiter' [dataSource]="resourceDataSource"
                    [allowMultiple]="true" textField='name' idField='id' colorField='color'>
          </e-resource>
        </e-resources>
      </ejs-schedule>

      <ejs-contextmenu #menuObj target='.e-schedule'
          [items]='contextMenu.menuItems'
          (beforeOpen)="contextMenu.onBeforeOpen($event)"
          (select)="contextMenu.onItemSelect($event)">
      </ejs-contextmenu>


Component.ts:
@ViewChild('scheduleObj', { static: false }) scheduleObjScheduleComponent;
  @ViewChild('menuObj', { static: false }) menuObjContextMenuComponent;
  @ViewChild('drawer', { static: false }) drawerany;

  public holidayDataSourceHoliday[];

  currentProgramnumber;
  currentDateDate = new Date();
  currentViewView = "TimelineWorkWeek";
  allowMove = false;

  public eventSettingsEventSettingsModel = { dataSource: [] };
  public resourceDataSourceResource[] = [];
  public rowAutoHeight = true;

  public timeScaleTimeScaleModel = {
    enable: false
  };

  public groupGroupModel = {
    allowGroupEdit: true// Shared Events
    enableCompactView: true,
    resources: ['Employees']
  };

  public contextMenuScheduleContextMenu;
  private unsubscribeAll$Subject<any>;

  private viewMapping = {
    'week': 'TimelineWorkWeek',
    'month': 'TimelineMonth'
  };

  private eventColorMapping = {
    'provisional': '#a15252',
    'agreed': 'accent'
  };

  constructor(
    private routeActivatedRoute,
    private routerRouter,
    dialogMatDialog,
    private dialogServiceDialogService,
    private planningServicePlanningService,
    private programServiceProgramService,
    private assignmentServiceAssignmentService,
    @Inject(WINDOWprivate windowWindow
  ) {
    this.unsubscribeAll$ = new Subject();
    this.contextMenu = new ScheduleContextMenu(dialogdialogServiceassignmentService);
  }

  ngOnInit() {
    this.route.data.pipe(takeUntil(this.unsubscribeAll$))
      .subscribe(res => {
        this.currentProgram = res.data.program;
        this.currentDate = res.data.date
        this.currentView = this.viewMapping[res.data.viewas any;
      });

    this.programService.resourcesChanges.pipe(takeUntil(this.unsubscribeAll$))
      .subscribe((resResource[]) => this.handleResources(res));
  
    this.programService.holidayChanges.pipe(takeUntil(this.unsubscribeAll$))
      .subscribe((resHoliday[]) => this.holidayDataSource = res);
  
    this.programService.assignmentsChanges.pipe(takeUntil(this.unsubscribeAll$))
      .subscribe(res => this.handleAssignments(res));

    this.assignmentService.assignmentChanges.pipe(takeUntil(this.unsubscribeAll$))
      .subscribe((res=> this.onAssignmentModified(res[0], res[1]));
  }




8 Replies

BS Balasubramanian Sattanathan Syncfusion Team April 7, 2020 10:50 AM UTC

Hi Florian Grossniklaus, 
 
Greetings from Syncfusion Support. 
 
We have analyzed the reported problem and we could able to reproduce the problem at our end. So we logged the below defect report. The fix for this defect will be included in our upcoming patch release which is expected to roll out on April 14th, 2020. We would appreciate your valuable patience until then. You can track the status through the below feedback link. 
 
 
Regards, 
Balasubramanian S 



FG Florian Grossniklaus April 8, 2020 06:45 AM UTC

Oh Thank you so much. I am so glad that you could repoduce the problem. Im looking forward to the Update.


VM Vengatesh Maniraj Syncfusion Team April 9, 2020 05:46 AM UTC

Hi Florian, 
 
Thanks for the update. 
 
We will update the details once we published the package. 
 
Regards, 
Vengatesh   
  



AB Abhishek April 16, 2020 10:21 PM UTC

Any update on this issue? I'm facing the same problem. Thanks


VM Vengatesh Maniraj Syncfusion Team April 17, 2020 08:02 AM UTC

Hi Abhishek, 

We regret the inconvenience caused. 

We are working to resolve the issue “templates in Angular 9” with high priority. We will update you once it is resolved. 

Meanwhile,  is it possible to downgrade the angular version to 8+ versions temporarily until we provide the fix for this template issue?  

Note: The production mode issue also occurs due to the below Angular issue. We are working with the Angular team to resolve the issue. meanwhile, we are trying to find an alternative solution to this issue.  
 
Regards, 
Vengatesh 



VM Vengatesh Maniraj Syncfusion Team May 15, 2020 03:57 AM UTC

Hi Abhishek,

 

We are glad to announce that the “Template issue in Angular 9” has been fixed and included in our Essential Studio 2020 Volume 1 SP release v18.1.0.52. So we suggest you please upgrade your package version to the latest version to get the solution.

 

Feedback: https://www.syncfusion.com/feedback/13221/schedule-templates-are-not-working-in-angular-9-version

Release Notes: https://ej2.syncfusion.com/angular/documentation/release-notes/18.1.48/#common

 

We thank you for your support and appreciate your patience for this solution. Please get in touch with us if you need any further assistance.

 

Regards,

Vengatesh  



FG Florian Grossniklaus May 18, 2020 08:48 AM UTC

Great Job! My problem is fixed and the scheduler component is working now. Thank you so much!

Regards,
Florian Grossniklaus


VM Vengatesh Maniraj Syncfusion Team May 19, 2020 05:57 AM UTC

Hi Florian, 
 
You are most welcome. 
 
We are happy that your problem has resolved. 
 
Regards, 
Vengatesh  
15

Loader.
Up arrow icon