Questions Tagged javascript

onBeforeCellRender set cell properties

Hi all, I'm using the Daypilot Calendar in ored to manage a SPA appointmens. On the columns I have the treatment rooms and on the rows the timeframe. I'm wondering if it's possible to add a cell prop...

Force loading message with backdrop

Answered: dp.message() should work anytime and it doesn't depend on any other variable: https://api.daypilot.org/daypilot-scheduler-message/ You can also use dp.message.hide() to hide the current message. Ther...

Different Height for specific Events?

Answered: Yes, you can specify custom height using .height property: https://api.daypilot.org/daypilot-event-data/ It will overrride the global height set using .eventHeight property. You can also specify cust...

Ressource Tree Collapse JavaScript

Answered: Since build 2259, you can use DayPilot.Row.collapse() and DayPilot.Row.expand(): https://api.daypilot.org/daypilot-row-collapse/ https://api.daypilot.org/daypilot-row-expand/ In previous builds, you ...

Scheduler - Row Header always keep Floating

I have set rowHeaderColumns (three columns with Name & width) & resources properties. The rowHeaderWidth is set to 200 & rowHeaderScrolling is set to true. The row headers & resources are appearing q...

How to change transition in daypilot scheduler

Answered: You can scroll to the specified date using .scrollTo() method: https://api.daypilot.org/daypilot-scheduler-scrollto/ Demo: http://javascript.daypilot.org/demo/scheduler/scrolling.html Let me know if ...

onEventClicked don't work when switching page

Hi, when i switch page, the onEventClicked don't work. I have to reload the page to make it work again. Is it a bug ? There is my code : $scope.schedulerConfig = { scale: "Day", days: 365, startDate:...

Angular 2 Support

Answered: The first Angular 2 version of the Scheduler is now available: https://code.daypilot.org/67423/angular-2-scheduler-tutorial-typescript It's in an early stage. However, the following is working: DayPi...

How to export excel with table

Answered: You are exporting the data in CSV ( https://en.wikipedia.org/wiki/Comma-separated_values ) format which doesn't support any formatting. Basically, there are two options: 1. You'll need to use a third...

Testing the status of a room while selecting a timerange

Answered: If you store the resource status in dp.resource[].tags object you will be able to access it like this: dp.resources = [ { name: "Resource 1", id: 1, tags : {disabled: true } } ]; // ... dp.onTimeRang...

Issue with loading events data from array.

Answered: You need to change "dp.events" to "dp.events.list": dp.events.list = [{text: "Busy", start: "2013-03-24T03:00:00", end: "2013-03-24T05:00:00", id: 10, resource: "B"}]; See also: https://doc.daypilot....

Horizontal resources

Answered: It's possible to display resources on the horizontal axis with the Calendar control switched to "Resources" mode: https://doc.daypilot.org/calendar/resources-view/ Demo: http://javascript.daypilot.or...

Multiple row selection on touch devices

Answered: Sorry for the delay - a couple of changes were necessary so it took a bit longer. Instead of using the default behavior which is defined using .rowClickHandling="Select" you can also add your own eve...

Coloring cells to indicate "today"

Answered: In the Scheduler, you can use the following code: dp.onBeforeCellRender = function(args) { if (args.cell.start <= DayPilot.Date.today() && DayPilot.Date.today() < args.cell.end) { args.cell.backColor...

Daypilot trial expires at one day

Answered: There is no built-in expiration mechanism that would cripple displaying the data. It looks like there might be a problem/bug. I assume you are using the sample project from https://code.daypilot.org/...