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

I'm Using angular Daypilot Scheduler.

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

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.Scheduler.se (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]
13 days 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 (https://builder.daypilot.org/). Keep adding the logic from your application step by step until you see what is causing the problem.

New Reply
This reply is
Your name (optional):