Active Questions
api version
Answered: The ASP.NET WebForms version uses API v1 and it can't be changed. The selected api affects how the client-side events are processed. For api=1 only one event is fired for every action, depending on t...
DayPilot - Scheduler Javascript
I am trying applying fore and back color for the message bar of scheduler based on success and error scenarios by using the method, but it not overriding the css we have for message bar. Please fix t...
Last column Header Lower
I have a possible bug/issue with DayPilot 8.1 where the text in the last cell of the header barely appears. I have been tweaking and adjusting the config in angular directive + $scope.config to get i...
DayPilotBubble's CSS is not accepting at run time
Answered: This happens because the bubble object is initialized in Load phase. It's now updated in the the latest build (8.1.3472). You can download it in the sandbox: http://www.daypilot.org/sandbox/ Let me k...
How To Redirect To URL By Clicking Event
Answered: Use the following config:
@(Html.DayPilotCalendar("dpc", new DayPilotCalendarConfig {
// ...
EventClickHandling = EventClickHandlingType.JavaScript,
EventClickJavaScript = "window.locatio...
Resource Header Width
Answered: Hi. Yes, You were right! With the new version everything works fine. Now, do I have to buy a new license?
Use Custom JSON Object in resource
Answered: The scheduler .resources property requires this exact structure. See also: http://api.daypilot.org/daypilot-scheduler-resources/ If your server returns JSON array that has items with a different stru...
Saturday et sunday in gantt chart
Answered: It is possible to hide Saturdays and Sundays by creating a custom timeline: http://doc.daypilot.org/gantt/timeline/ This way you can create a timeline that includes only the workdays. If you want to ...
Target cell based on event type?
Answered: You can use onBeforeCellRender event like this:
//...
dp.onBeforeCellRender = function(args) {
var events = dp.events.forRange(args.cell.start, args.cell.end);
// check events array for ev...
Add multiple rows to selection is slow, any faster way?
Answered: You can also use .selectedRows property:
dp.selectedRows = ['A', 'B', 'C'];
dp.update();
Let me know if the performance doesn't get better this way.
All day events on month view
Answered: The month view (DayPilot.Month class) doesn't recognize all-day events because they are displayed the same way as normal events. Unlike the Calendar which displays them in a special row below the day...
Navigator onTimeRangeSelected with Switcher
Answered: I've solved using onTimeRangeSelect insted of onTimeRangeSelected. Bye
Getting tag URL Parameter from JSON Request
Answered: There are two options: 1. You can send the url from the server:
class Event {}
class Tags {}
$events = array();
foreach($result as $row) {
$e = new Event();
$e->id = $row['plan_id'];
...
Is there an event/hook that tells me when onBeforeHeaderRender(s) are done?
Answered: Since build 8.1.1903, the onAfterRender event is fired during update as well. You can download the latest build in the sandbox: http://javascript.daypilot.org/sandbox/ The args.isUpdate parameter wil...
Switcher bug
Answered: Thanks, it should be fixed now in the latest sandbox build (8.1.1842): http://javascript.daypilot.org/sandbox/
Navigator looks weird
Hi, This is how the navigator looks: http://i.imgur.com/lK6Pdft.png code: http://pastebin.com/rHqzC1zn As you can see the bottom line is to short and the right line doesn't show at all. How can I fix...
Resize column widths on the fly
Answered: I've created a simple demo that uses your approach (<input type="range">): http://javascript.daypilot.org/sandbox/scheduler/cellwidth.html Implementation:
<div class="note">Cell Width: <input type=...
Display Scheduler for specified Start and End date
Answered: At this moment the scheduler only works with .startDate and .days properties. You can use DayPilot.DateUtil.daysDiff(first, second) helper method to calculate the .days property:
var days = DayPilo...
Scheduler Drag and Drop
Answered: I have replaced this line: var top = (event.part && event.part.top) ? (event.part.top + calendar.rows[event.part.dayIndex].Top) : coords.top; by this line: var top = (event.part && event.part.top && ...
MemoryStream error when exporting to PNG several items
Answered: It looks like it is not the number of resources or the timeline length that is causing the problem. It is the absolute image size. I did a few tests. I've added the image export button to the followi...