Questions Tagged javascript

Set timerange to 8 am until 3am the next day

Answered: Rik, I didn't check the actual logic of your sample but the result should be set using args.cell.visible property instead of the return statement. See also: https://api.daypilot.org/daypilot-schedule...

Calendar events not updating

Answered: 1. If you have a complete data set that you want to display (i.e. you don't plan to apply any "diff" to the event set) the recommended way is to assign the array directly to .events.list: vm.calendar...

Angular2 scrollTo() on click event

Answered: This issue should be fixed now in the latest sandbox build (8.3.2510): https://npm.daypilot.org/ You can use the following code to keep the current position when changing the scale/cellDuration/cellW...

Resources not showing with dynamicLoading = true

Answered: I figured out what the problem was after testing my data on the dynamic example. I had not added args.loaded() in my onScroll function. After adding that the rows are loaded correctly, but with a del...

Get Resource Parent ID

Answered: You can do it like this: var parentId = dp.rows.find("A").parent().id; See also: https://api.daypilot.org/daypilot-scheduler-rows-find/ https://api.daypilot.org/daypilot-row-parent/

onRowFilter - error on cells.all()

Answered: This event handler is called during the update process. The rows.cells.all() method will only work correctly when the update is complete. What would you like to achieve? Hide a row that doesn't have ...

Using Scheduler as syntax with events

Answered: Your setup seems to overwrite the "events" property of the DayPilot.Scheduler object somewhere. The events property holds not only the event data (events.list) but also other methods (events.update()...

Ctrl+Shift Keys

Answered: Workaround done. Problem fixed. Handling the onEventRightClick Event. if (args.originalEvent.ctrlKey==true) { args.preventDefault(); }

Cannot read property 'exp' of undefined

Answered: As far as I can tell there is no "exp" property in DayPilot. It looks like it's related to watching changes of an object that you reference using "config" or "events" attributes. The slowdown is also...

Printing / Exporting scheduler with HTML in the events

Answered: At this moment the export doesn't support HTML. There are onBefore*Export events that let you supply alternative text: https://api.daypilot.org/daypilot-scheduler-onbeforeeventexport/ https://api.day...

All cards hiding when collapse one swimlane

Answered: This bug is fixed in the sandbox build already: http://javascript.daypilot.org/sandbox/ The fix will also be included in the next official release.

Angular 2 Troubleshooting

Answered: Ok well my fault so here was the issue: I add that line I mentioned to the angular-cli.json Which is what I have done for every other 3rd party control in this project. I took that line out to stay i...

Event overlap true. Set maximum events per day

Hi! I would like to have multiple events in one day. I set eventoverlap to true. (hotel reservation system) But I would like to set limit per day. Is there anything like this? I think, I saw it somew...

Kanban: onBeforeCellRender in AngularJS

Answered: This happens because event handlers specified using on-* attributes automatically wrap the code in an $appy() block - to make the behavior consistent with the standard AngularJS behavior. This isn't ...