Active Questions
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 =...
loadEvents(); wanted to call every 10 sec
Answered: Thanks for the update. There is also a built-in AutoRefresh feature that is a bit smarter (it doesn't fire if a drag and drop operation is in progress): https://doc.daypilot.org/scheduler/autorefresh/
Disabled Rows
Answered: The best way would be to use TimeRangeSelectingJavaScript to provide a custom event handler that forbids the selection for the given rows. Something like this:
@Html.DayPilotScheduler("dps", new Da...
Highlighting Today
Answered: Yes, you were correct I was using Version 7.9.5741.1, now that I changed to 8.3.5862.1 is working properly. Thanks.
How do I specify Landscape for Print?
Answered: I did a couple of tests but unfortunately the only browser that lets you specify orientation when printing is Chrome. The only reliable way is to create a PDF file and insert the exported image. See ...
ERROR SHOW IN MY PROJECT
Answered: This tutorial required DayPilot Pro (the commercial version). It looks like you are using DayPilot Lite (the open-source version) which doesn't support all the features (e.g. SetScrollX() method).
Export Calendar Month with different event colors
Answered: The event colors should be already fixed in the latest sandbox version (since build 2936): https://javascript.daypilot.org/sandbox/ The TypeScript definitions [missing exportAs()] will be updated sho...
One Event with multiple resources but same EventId
Answered: You need to supply one item in the datasource for each of the rows. Typically, you'll be storing the resources assignment (event-resource link) as a separate DB record anyway. I recommend using the a...
How to get the start and end date
I am currently using the trial version of DayPilot Pro. I am displaying a default week / month view of the current week/month. I need to extract from the calendar the start and end dates it is showin...
Changing HeaderDateFormat in Calendar has no affect on output
I have been experimenting with the DayPilot lite version 1.5.434.0, and I have been unable to change the way the dates are rendered. I would like to have the day name displayed, but currently it only...
Event Resize in vertical and horizontal direction in Scheduler
how can i resize event in both direction horizontal and vertical ? it is just allow me to resize event in vertical direction but not in horizontal direction . can you please help me ?
Is it possible to change color to milestone
Is there any way to change color of milestone task in some conditions (code behind should be the best option in my case) Regards
How to highlight area on Scheduler when clicked on an event
Hi everybody, There is few time I have started to use Daypilot for JS. But now I have a problem that not seems to be in "Demo" section. My goal is to highlight some area when an Event is selected. Fo...