Active Questions
Cannot find daypilot-all.min.js
Answered: It looks like you have the ASP.NET WebForms version (http://www.daypilot.org/). To use DayPilot with AngularJS you need the JavaScript version (http://javascript.daypilot.org/). If you have purchased...
Identify the Area that triggered the drag
Answered: Good question! No, you can't at the moment. But let me check how to pass custom data to the event handler.
Incompatible DayPilot client script version. Expected 1478 (you are using 176-lite).
Answered: You are using incompatible versions of daypilot-all.min.js and DayPilot.Mvc.dll. In this case, the dll is from the Pro version and the .js is from the Lite version. You need to use both from the same...
How to add event in Calendar control
Answered: Please take a look at the following tutorial: http://code.daypilot.org/59860/asp-net-mvc-5-event-calendar It shows how to use the Calendar control in MVC. It uses the Pro version but the same approac...
Scheduler - Grey out events on saturday and sunday
Answered: The following code will change the event color to gray if it it overlaps a weekend:
protected void DayPilotScheduler1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
...
Time range context menu in DayPilot.Month
Answered: Unfortunately, the context menu is not available for the time range selection in the Month control at the moment (not even in the current release).
multiple rows per resource
Answered: The Scheduler (with resources displayed as rows) is only available in the Pro version. It is only possible to display one row per resource. However, you can group multiple resources under a tree node...
How to install DayPilot Pro for ASP.NET WebForms (OEM Start)?
Answered: If you used the the trial version of DayPilot Pro it is enough to replace the DayPilot.dll in you web application. The trial assembly version ends with .1 (e.g. 8.1.3452.1 for the latest release). Th...
Change "gannt_default" design to my own design
I created a new Gantt design using the Theme Designer, put it into the same location as the other themes, created a <link> next to the other themes in my code and finally I tried to call it with "gan...
Space between two events in same resource
Answered: You need to modify the event CSS. An example for the default CSS theme (theme="scheduler_default"):
.scheduler_default_event_inner {
bottom: 2px !important;
}
Daypilot height 100%
Answered: If you want to set the height to 100% of the parent element, you should use this:
dp.heightSpec = "Parent100Pct";
Please note that this requires the parent element height to be set explicitly - s...
DayBeginsHour
Answered: Unfortunately minute precision for the calendar start is not supported in the Calendar at the moment. In the Scheduler you can create a custom timeline (http://doc.daypilot.org/scheduler/timeline/) w...
How to prevent user from creating links in Gantt?
Answered: You can disable link creating by setting LinkCreateHandling="Disabled" (the default value is "Notify").
Scheduler - auto width cells
Answered: This issue should be fixed now in the latest release (8.1.1821): http://javascript.daypilot.org/daypilot-pro-for-javascript-8-1-sp2/ Let me know if the problem persists.
How to hand over parameters on JavaScript Action
Answered: The menu source object is available as "e" variable. In this case, it is the selection object which has three properties (start, end, resource):
<DayPilot:MenuItem Action="JavaScript" Text="Neue Ab...
json date not converting to daypilot date format
I am rendering all daypilot events by ajax from server(the result is JSON) when i am trying to push it shows invalid time zone. For this i need to iterate all events convert to Daypilot date ,is ther...
How to navigate to a special task in Gantt?
Answered: The latest sandbox build (8.1.3450) now supports ScrollToTask(id) method. It lets you set the vertical scrollbar position using the specifeed task id. It works during the initial page load and also d...
Modal dialog does not pop up when gantt is placed inside ajax update panel
I placed a gantt diagram inside an ajax update panel component from MS Visual Studio. An entry in context menu of a task should start a modal dialog. Action of this menu item is set to postback. But ...
How to disable the percentage that is displayed in the task box as text ("51%") in Gantt
Answered: You can override the task box text using BeforeTaskRender event handler: The following example will show the task text instead of the percentage:
void DayPilotGantt1_BeforeTaskRender(object sender,...