Active Questions
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 ...
Timetable Tutorial (ASP.NET, C#, VB.NET)
sir i have request to show how we will add in event to show time and in new event as it is note we are giving in the event
Moving all events from once resource to another
Answered: You can get a list of all events for a given row using DayPilot.Row.events.all():
var events = dp.rows.find("A").events.all();
Then change the "resource" value for all of them and call update:
...
Exact timerange selection when useEventBoxes is set to never.
Answered: In addition to useEventBoxes which affect the display of existing events there is also snap-to-grid feature which affects drag and drop: https://doc.daypilot.org/scheduler/snap-to-grid/ Unfortunately...
javascript not running on server
Answered: I had to set the Anonymous Authentication user to DefaultAppPool and it is now fine.
Cell duration
Hello, I would like to change the cell duration of the time to be 1 min in asp.net webforms I changed the code to be: <DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server" CssClass="auto-s...