Active Questions
Show some text in the dates where event is not listed
Answered: Since version 2019.3.3907 you can use this:
dp.onBeforeCellRender = function(args) {
if (args.cell.events().length === 0) {
args.cell.html = "No event here";
}
};
Event double click
Answered: For the double click you should use:
eventDoubleClickHandling: "Enabled",
onEventDoubleClick: function(args) {
// open modal here, event details are in args.e
}
The context menu item should ...
Using font-awesome icons in the context menu
Answered: Yes, it's possible. Just use the "icon" property to specify the CSS classes:
var dp = new DayPilot.Scheduler("dp", {
// ...
contextMenu: new DayPilot.Menu({
items: [
{ text: "User ...
Dynamic Right click menu content
Answered: There are two options: 1. You can set the context menu using "contextMenu" property in onBeforeEventRender:
var menu1 = new DayPilot.Menu({ ... });
var menu2 = new DayPilot.Menu({ ... });
// .....
PDF Export Tutorial missing definition of SetDataSourceAndBind and SetExportProperties
Answered: The tutorial text is now updated to include these methods as well: https://code.daypilot.org/69614/scheduler-pdf-export-asp-net-c-vb-sql-server You can also find it in the downloadable project - that...
Null Exception on DataItem when setting StartDate
Answered: Hi Scott, The e.DataItem property is only initialized if you call DataBind(). Calling DataBind() is not necessary during callbacks/postbacks because the events are reloaded from the ViewState. Howeve...
How to drop event on external control
Answered: Unfortunately, a custom external drop target is not supported at the moment. However, it is possible to drag events between to Scheduler instances. It would be possible to create a simplified instanc...
How to change opacity of the backcolor of the event?
Answered: You can add a custom CSS class to the event using cssClass property of the data object:
// e is the DayPilot.Event object
// dp is the DayPilot.Scheduler object
e.data.cssClass = "semi-transparen...
Moving "Endless" events : How to keep up the e.end = NULL ?
Answered: The Scheduler requires both the start and end dates of the event to be set. An empty value will be replaced by new DayPilot.Date() instance which represents the current time. In your case, it might b...
Drag and Drop an item from external windows forms to DayPilot Scheduler
Answered: Hi Vane, It's now possible to drag external items (including files from desktop and items from other applications) to the Scheduler cells using the native HTML5 drag and drop API. Please see the foll...
Please , confirm if the following link comes under lite or pro version
Answered: This is the link to the DayPilot Pro demo: https://javascript.daypilot.org/demo/ And here you can find the DayPilot Lite demo: https://javascript.daypilot.org/demo/lite/ Your link points to the Pro v...
Adding A checkbox
Answered: You can customize the event content using BeforeEventRender event handler (you can use it to customize the HTML, CSS class and other properties): https://doc.daypilot.org/scheduler/event-customizatio...
Using Daypilot Calendar with RequireJS
Hi, We use RequireJS for bundling so we'd like to know how to go about doing this specifically for the calendar. We're using the lite daypilot-calendar-src.js source file, which looks like it makes u...
Graphical Plan Display Issue
Answered: This is by design. Each event will be displayed as close to the top of the row as possible. If you want to make sure that the blue events are displayed at the same vertical position you'll need to ad...
Dynamically update Navigator
Answered: I'm not sure if this is what you are looking for but the Navigator supports highlighting busy days (days with events) out of the box. You can supply the an array with events in the same format that i...
EndDateSpec equivalent for Month control?
Hi, I've just discovered the incredibly useful 'EndDateSpec' setting that allow dates to appear inclusive of the end date for the Scheduler. Is there an equivalent setting for the Month control?
How to use password for event creation ,resizing and moving
Answered: The preventDefault() method needs to be called in the main context (before the onEventResize handler exits). You are calling it in the callback method which is called later and it has no effect. The ...
NG7 - scheduler (zoom example): undefined "args" in .config ?!
Answered: It looks like if you set startDate using a string (not DayPilot.Date) in the config you may receive it in args.date unconverted. It's fixed now in the latest sandbox build (2019.2.3893). In previous ...
Calendar - List of all Events
Answered: The latest sandbox build (2019.2.3891) now supports DayPilot.Calendar.events.forRange(start, end) method. It will return events from the specified range.
var selectedEvents = dp.events.forRange("20...
scroll wheel vs. touch
Answered: There was an issue with the row headers. There was an extra space below the rows that allowed scrolling to an invalid position. This extra space is only required on desktop to make space for the scro...