search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

I'm Using angular Daypilot Scheduler.

Asked by Akhtar Raza
1 year ago.
<div class="container">
    <daypilot-scheduler [config]="config" [events]="events" #scheduler></daypilot-scheduler>

But when I run the project I'm getting error in console.

ProjectSchedulerComponent.html:2 ERROR Error: DayPilot.Scheduler: The placeholder element not found: 'dp_163161595485990635'.
at new DayPilot.Exception (daypilot-core.js:10)
at (daypilot-core.js:34)
at DayPilot.Scheduler.up (daypilot-core.js:34)
at DayPilot.Scheduler.init (daypilot-core.js:34)
at DayPilotSchedulerComponent.ngAfterViewInit (daypilot-angular.js:1)
at callProviderLifecycles (core.js:24985)
at callElementProvidersLifecycles (core.js:24959)
at callLifecycleHooksChildrenFirst (core.js:24949)
at checkAndUpdateView (core.js:31812)
at callViewAction (core.js:32044)

Answer posted by Dan Letecky [DayPilot]
1 year ago.

The placeholder div is generated automatically by the Angular Scheduler component and it is initialized immediately. You will only see this error if the Scheduler can't find the placeholder which is very unusual. It can happen if you manipulate the DOM directly.

I recommend starting with a blank project generated by the UI Builder ( Keep adding the logic from your application step by step until you see what is causing the problem.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.