Questions Tagged
How to change the backColor of the timeRangeSelection while timeRangeSelecting event
Answered: You can use the direct cells API, e.g. https://api.daypilot.org/daypilot-scheduler-cells-find/ Just a note - you need to remember the changes made to the cells and redo them when it's finished.
Navigator not right
Answered: Yes, the latest version is 8.3.2848: https://javascript.daypilot.org/try/ Did you download it as part of a tutorial? It may need an update - could you please let me know the URL?
Losing scrollbars when adjusting height dynamically
Hi there, On an event i want to increase/decrease the size of the scheduler and reset the height and width. I have set the HeightSpec to Fixed and on the event the height is set by dps.setHeight(newh...
resourceHoverHandling
Answered: Since build 2852 it's possible to use action: "Bubble" for row headers as well:
dp.resourceBubble = null;
dp.onBeforeRowHeaderRender = function(args) {
args.row.data.bubbleHtml = ...
Are the Daypilot Suite of Controls Windows 10 Compliant?
Answered: Hi Dave, On the client side (JavaScript), the main factor is the browser. Switching the client OS from Windows 7 to Window 10 will be no problem. Switching from IE to Edge should be no problem either...
Resource rows not lining up with schedule rows in Chrome
Answered: It looks like some global CSS may interfere with the Scheduler CSS styles. You can try to disable the global styles temporarily to see if it is the case. Also, it looks like you are using an old vers...
interval date of events
Answered: DayPilot interprets the dates in your example as "2017-04-01T00:00:00" and "2017-04-05T00:00:00" - that should explain the default behavior. You can switch the behavior using eventEndSpec property: e...
concurrent event groups
Answered: Now (since build 8.3.2847) you can also access the events in the group using args.group.events array: https://api.daypilot.org/daypilot-scheduler-onbeforegrouprender/ The latest build is available in...
Angular 2, cell bubbles during event move
Hi When moving an event with drag and drop our cell bubbles are shown during drag where the grab handle happens to be placed on the event, instead I would like to display a bubble with the targeted s...
How to capture mousedown on events
Answered: There is onAfterEventRender event that you can use to attach custom listeners to the event div: https://api.daypilot.org/daypilot-scheduler-onaftereventrender/ Example
dp.onAfterEventRender = funct...
Day pilot scheduler is not showing all events in angular 2
Day pilot scheduler is not showing all events. It just display events for the visible contents. it does not show events for the days for which we need to scroll. Show it is only showing records on fi...
Angular Scheduler: setting htmlLeft from onBeforeEventRender
Answered: It should be fixed now in the latest sandbox build (8.3.2842): https://javascript.daypilot.org/sandbox/ Let me know if the problem persists.
can't set color in cell when getDayOfWeek() == 7
Answered: DayPilot.Date.getDayOfWeek() returns 0 for Sunday, 1 for Monday ... 6 for Saturday: https://api.daypilot.org/daypilot-date-getdayofweek/
Performance issue when adding/deleting entity in daypilot
Answered: Please hold on - the events.add() and events.remove() optimizations are in the works. At this moment it redraws the full row because it's always safe (the added/removed event can affect row height an...
Reset "args" data in "onEventMoved"
Answered: This issue should be fixed now in the latest sandbox build (8.3.2841): https://javascript.daypilot.org/sandbox/ Let me know if the problem persists.
Angular 4
Answered: The DayPilot namespace still works the same way. Just import it:
import {DayPilot, DayPilotSchedulerComponent} from "daypilot-pro-angular";
And you can use it in the code.
Event overlap javascript
Answered: Found a solution:
dc = dp.resources[x].children[y].id;
var dcStart = dp.events.find(dc).data.start;
var dcEnd = dp.events.find(dc).data.end;
var deStart = args.start.addMinutes(30);
var deEn...
Daypilot scheduler demo version
Answered: The trial version of DayPilot Pro can only be used for evaluation purposes and can't be used in live applications. If you want to deploy it you have to purchase a license: https://javascript.daypilot...
Move resource server side in Scheduler
Answered: The resources will be displayed in the order specified in the Resources collection. When adding a new Resource just insert it at the specified position or sort the collection before updating the Sche...
Angular 2 scheduler loaded in a dynamic component
Hi, I'm trying to load a scheduler within a dynamic component in Angular 2 but I'm experiencing problems to get events showing in my scheduler. I'm not really sure what's going on but it could be som...
Callendars scrollbars working as one
Answered: You're right, sorry. The latest version requires a different syntax.
@Html.DayPilotCalendar("dpc1", ...)
@Html.DayPilotCalendar("dpc2", ...)
<script>
dpc1.nav.bottomRight.addEventListener("s...
Implementing a navigator in a Resource View
Answered: The visibleStart() and visibleEnd() are guaranteed to work only for the following viewTypes: "Day" "Week" "WorkWeek" The primary purpose of these methods is to provide information on the dates that w...
how to reduce amount
Hi sir, This is valueable to codeing .but small doubt . iask to how to reduce in amount .
Kanban - args.preventDefault()
Answered: This issue should be fixed now in the latest sandbox build (8.3.2792): https://javascript.daypilot.org/sandbox/
How to make the newly created tab active in angular2?
Hello, I am currently using angular2 and I followed the plunker http://plnkr.co/edit/kQS0f9ERUOKRToA1bEXq?p=preview. Can you please let me know how to make the newly added tab as active tab and load ...
Can't get showNonBusiness to work on JS
Answered: I used dayBeginsHour and dayEndsHour instead and that worked perfectly. I'm not sure if showNonBusiness is deprecated, I tried to debug the script and saw those two so I used them. So now my only pro...
Change from sqllite to MS SQL
Answered: Yes, you just need to adjust the $db variable initialization in _db.php:
$db = new PDO('sqlite:daypilot.sqlite');
For MySQL you'll need to use something like this:
$host = "127.0.0.1";
$port =...
Inverse the axis
Answered: It's possible but you'd have to use the Calendar control switch to the "Resources" mode instead of the Scheduler. You can see a demo here: https://javascript.daypilot.org/demo/calendar/resources.html
Can Navigator be used seperately from other controls?
Answered: Yes, no problem. Just set TimeRangeSelectedHandling to "PostBack" or "JavaScript" and handle TimeRangeSelected/TimeRangeSelectedJavaScript event to be notified about the new date selection. You can a...