Active Questions
Problem with an org.daypilot.json.JSONException:
Answered: It looks like you are reading the input stream before passing it to process(). In that case, it's necessary to reset the position in the stream to 0. Something like this might also happen if you try ...
How to change bar color?
Answered: The right property name is "barColor". Here is a full list of event object properties: https://api.daypilot.org/daypilot-event-data/ There is also an example that shows how to change the duration bar...
full display for Calendar
Answered: In the JavaScript version, all member names follow the camel case convention. You need to use "heightSpec": https://api.daypilot.org/daypilot-calendar-heightspec/
In tutorial app is referenced
Answered: It's the Vue app:
var app = new Vue({
el: '#scheduler-app',
data: { }
});
It was missing in the previous code samples - the tutorial is updated now.
Scheduler not showing
Answered: The following combination of properties results in an empty timeline:
days: 1,
startDate: new DayPilot.Date('2020-02-01T00:00:00+00:00'),
showNonBusiness: false,
businessWeekends: false,
The s...
Change the amount of days on screen, scroll through entire year
Answered: Yes, you'd have to calculate the cellWidth based on the viewport size. Something like this:
cellWidth: function(args) { var days = args.date.daysInMonth(); return Math.floor(dp.nav.scroll.clientWid...
Arrow issue
Answered: This is by design. In the Scheduler, the left edge uses "w-resize" cursor and the right edge uses "e-resize" cursor. If you don't like the appearance you can replace the built-in resize margins by ac...
DayPilot Calendar. Delete event icon is not show even on demo site.
Answered: This problem should be fixed now in the latest sandbox build (2020.2.3741): https://aspnet.daypilot.org/sandbox/Calendar/EventDeleting.aspx
Show Duration of External Drag and Drop Event
Answered: This example uses the generic HTML5 drag and drop API and that doesn't allow reading the source object properties until drop. So unfortunately, this is not possible. If you use the built-in external ...
New Event with dropdown values as name
On the creation of a new event, instead of typing name, get possible values from a query to a mysql. Getting a dropdown menu to select the name of the event.
Displaying Group Availability of child element in parent control in asp.net webforms
Answered: This is possible but you'll need to calculate the values yourself because there is no API to get a list of events for the specified time range in the ASP.NET WebForms version.
can we assign value to parent control in DayPilotScheduler1_BeforeCellRender(object sender, DayPilot.Web.Ui.Events.BeforeCellRenderEventArgs e)
Answered: Yes, you can use BeforeCellRender to set the content of every grid cell. See also: https://doc.daypilot.org/scheduler/cell-customization/
Custom multiple parent control value
Answered: You can set the content of the grid cells using BeforeCellRender (see also https://forums.daypilot.org/question/5098/can-we-assign-value-to-parent-control-in-daypilotscheduler1). You can also add spe...
New Event from a list of pre define events
Answered: I'm not sure if this is what you are looking for but if you have existing unscheduled events/tasks that need to be scheduled you can use external drag and drop to move them to a specific time slot in...
Displaying Group Availability without disable row
Answered: This is the code that calculates the group availability (https://code.daypilot.org/97538/javascript-scheduler-displaying-group-availability):
onBeforeCellRender: function(args) {
if (args.cell.i...
For Database
Answered: There is no specific PostgreSQL tutorial available but you can check the Angular + MySQL tutorials: https://code.daypilot.org/tutorials/mysql+angular In order to switch the tutorials to MySQL you'd n...
Calendar (WeekView) seprator is hiding behind Event
Answered: In the Calendar component, the current time indicator position is fixed at this moment and it is always displayed below events. The indicator element is marked with ".calendar_default_now" CSS class ...
how to delete link
Answered: You can delete a link using the api: https://api.daypilot.org/daypilot-gantt-links-remove/ Users can delete a link using a context menu: https://doc.daypilot.org/gantt/link-deleting/
Sticky Time Header on Javascript Scheduler
Answered: You need to use heightSpec value other than "Auto": https://doc.daypilot.org/scheduler/height/ That will enable a vertical scrollbar and the time header will remain fixed. It's a good idea to design ...