Active Questions
Assign Multiple Background Color to an Event
Answered: You can insert custom segments into an event using "active areas": https://doc.daypilot.org/scheduler/event-active-areas/ You can specify the active area position using start/end properties instead o...
How to Get Specific Date of An Event
Answered: The current position in the grid (in pixels) is stored in DayPilot.Scheduler.coords object. This value is updated in real time:
var coords = dp.coords; // coords.x, coords.y
You can use DayPilot....
scheduler export PDF - how to put time bar and dates on the second and third page
Answered: There is a tutorial available that shows how to do this using the client-side export: https://code.daypilot.org/76551/html5-scheduler-paged-pdf-export Basically, it's necessary to export one image pe...
Sceduler Export to PDF - the scedule does not show correctly from second page
Hello, When I export schedule to PDF, the rows that has schedule gets shifted down and its not fitting the row like the first page. Is there any way to fix this issue? Thank you.
Unrecognized HeightSpec value error by default settings.
Hello I'm using lite version of calendar with mvc 5. I want to show the calendar only working hours. So my here is my code which throws above error. Any idea? @Html.DayPilotCalendar("dpc", new DayPil...
Javascript Date To Daypilot Date Conversion
Answered: The constructor has a second parameter which lets you specify whether to use the GMT base or local representation of Date object. This call will use the local representation:
var local = new DayPil...
Menu: menu is not defined
Answered: 1. The "contextMenu" property specifies a context menu for events. It's activated when you right-click an event (the default eventRightClickHandling value is set to "ContextMenu"). You can also map i...
can we change the color of gantt chart progress-bar?
can we change the color of gantt chart progress-bar? I uploaded one image file for the help on gantt-chart Please revert back asap thanks
Scheduling on Weekdays only.
Answered: You can hide weekends using ShowNonBusiness="true": https://doc.daypilot.org/scheduler/hiding-non-business-hours/ You can also hide selected time columns using IncludeCell event handler: https://doc....
Change order of Resources (like drag and drop)
Answered: Yes, it is available. Please take a look at the following demo: https://www.daypilot.org/demo/Scheduler/RowMoving.aspx
Javascript breaks when hover scroll bar
Hello, I am using DayPilot.Web.MVC version 8.3.5880.1 and daypilot-all.min.js version 2937. When I hover the scheduler scroll bar, on the bottom of the scheduler, I get this error message: "Unhandled...
DayPilotMont - GetEventMap Error
Answered: Thanks for reporting the issue. It's now fixed in the latest sandbox build (8.4.3620): https://www.daypilot.org/sandbox/
Mouse click on the cell not exactly
Answered: i found the reason why, because parent tag has a style with value: "margin-top: 50", change to: "padding-top:50" and it worked perfect ^_^
Drag&Drop of events which cross the border of visible period
Hi! Here is an issue with events which cross the border of the beginning of the visible period. Every event is bound to the start date. But in this case the start date isn't even displayed. So we can...
Scheduler MVC - Hiding rows without events
Answered: The isEmpty() method of DayPilot.Row is available since client core version 2759. It's now available in the sandbox version of DayPilot Pro for ASP.NET MVC: https://mvc.daypilot.org/sandbox/ The late...
Drag and drop from one Kanban to another is often failing (no move done)
I have two kanban in a page and dragOut is enabled; allowing to drag a card from one kanban to another. When using it, it often fails (nothing happens, the card is not moved; it remains at the previo...
DayPilot Scheduler (JavaScript) with SQL Server backend
Hi everyone, Is it possible to use the Scheduler (JavaScript) with a SQL Server database? I see in the tutorials that MySQL & SQLite can be used with PHP backend. I'd like to implement the DPS using ...
How to show Active Areas in Angular4
Answered: You might be defining onBeforeEventRender handler too late in the component lifecycle (after it is rendered). Try adding it to the config object (see also the Angular 4 Calendar tutorial at https://c...
how to create simple modal, can i have snippet please
Answered: You can display custom HTML using DayPilot.Modal.showHtml():
var modal = new DayPilot.Modal();
// ...
modal.showHtml("<div>text</div>");
onTimeRangeSelected: giving 3 value start/end/resource
Answered: The original data object is accessible as "data" property of the row object. You can get the row object (DayPilot.Row class) using .rows.find():
var row = dp.rows.find(args.resource);
var rm_cat =...