Active Questions
Print scheduler
Answered: Please note that HTML is not supported during image export: https://doc.daypilot.org/scheduler/client-side-export/ You can supply alternative text using onBeforeCellExport event (args.text): https://...
ShowNonBusiness="false" Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I seem to have found a bug in the DayPilot ASP.NET control. I believe that I am having the same issue described here: https://forums.daypilot.org/Topic.aspx/2460/business-hours-7-days-a-week-weekends...
DATETIMEPICKER?
Answered: DayPilot Pro includes a Navigator component that can be used as a full-size date picker: https://aspnet.daypilot.org/demo/Calendar/Navigator.aspx or as a popup: https://aspnet.daypilot.org/demo/Calen...
Drag Drop not working in safari
Answered: Is that the Windows version of Safari from 2012? Unfortunately that version is no longer supported by Apple and we don't support it either.
How to show a page error from callback
Answered: You can pass custom data to Update() method on the server side. This data will be available in the client-side AfterRender event handler (AfterRenderJavaScript property): See also: https://doc.daypil...
Modal Dialogue - on exit, refresh an underlying page
Answered: You can reload the page by calling document.location.reload() in the onClosed event handler:
var modal = new DayPilot.Modal({
onClosed: function(args) {
// ...
document.location.reload...
Daypilot - change start day of the week
Answered: The first day of week is determined by the Calendar locale. The default locale is "en-us" which uses Sunday as the first day of week. You can switch to one of the predefined locales (https://api.dayp...
How to run the project sample
Answered: It looks like you'll need to enable SQLite PDO driver in php.ini config file (it's not enabled by default): Windows:
[PHP]
; ...
extension=php_pdo_sqlite.dll
; ...
Linux:
[PHP]
; ...
exten...
treeAutoExpand Option for GANTT
Answered: By default all nodes in the Gantt chart are expanded. You can override it for each node (task) by setting task.row.collapsed = true:
dp.tasks.list = [
{
id: 1
start: "2018-01-01T09:00:00",
...
Change the color of the event
Answered: If "events" holds an array of DayPilot.Event objects you need to change the background color like this:
// ...
evt.data.backColor = 'Gray';
// ...
instead of
// ...
evt.backColor = 'Gray'; ...
Trouble
Answered: It looks like the following statement from jQuery throws the exception:
return+new Date
You should check if you don't override the default "Date" object in your code.
Float value instead of time on x-axis
Answered: The X axis will always use datetime values internally but you can map your numeric/duration values to it (add it to the StartDate as minutes or hours). You can override the time header to display the...
Next and Previous Navigation Jump Double
Answered: Dan Letecky you are correct. It is being called twice because of the Handle and OnCommand both being used. I removed the OnCommand from the ASPX and all is well again. Thank you for the help.
Event Calendar hide weekends
Answered: If you'd like to display a custom number of consecutive days you can use "Days" view as described here: https://doc.daypilot.org/calendar/days-view/ It's also possible to display any combination of d...
Error Javascript
Hello Dann, can help me with the following error, which is generated when I close the window create function close(result) { if (parent && parent.DayPilot && parent.DayPilot.ModalStatic) { parent.Day...
bespoke development
Answered: Thanks Dan. In all honesty, it would still be over my head! Obviously, I'd like to licence your code, but would anyone else be interested in helping me adapt it to our specific needs? Thanks
Cannot export or print schedule [AngularJS]
Answered: Update: The latest sandbox build (8.4.3098) accepts string, number and null (null was added in this build). The exception text now includes the value type. https://javascript.daypilot.org/sandbox/ Pl...
Uncaught String expected Error when export shceduler to jpeg
Answered: Please see a related question: https://forums.daypilot.org/Topic.aspx/4093/cannot-export-or-print-schedule-angularjs
How can i translate days into another language
Answered: Please take a look at the Localization topic in the documentation: https://doc.daypilot.org/month/localization/ You can use one of the predefined locales or you can define your own. In addition to sw...
Event start end problem
Answered: By default DayPilot works with exact date/time points, i.e. an event with end specified as "2017-10-06T00:00:00" will end at the beginning of October 6, 2017 (midnight). There is an option to change ...