Questions Tagged javascript

Hide +/- boxes

Answered: You can hide the icons using treeImageWidth and treeImageHeight properties: dp.treeImageWidth = 0; dp.treeImageHeight = 0; See also: https://api.daypilot.org/daypilot-scheduler-treeimageheight/ https...

cellHighlighting - after event painting

Answered: The time range selection shadow (selection indicator) is always rendered in the layer below events. To make sure it's visible you can specify rowMarginBottom to add some extra space at the bottom of ...

Colors

Answered: Hello, I found a solution here in the forum and helpfiles. Thank you and best regards, Otto dp.onBeforeEventRender = function(args) { if (args.data.tags && args.data.tags.type === "important"){ args....

changes with mouse click

Answered: There is an onEventClick event handler which you can use to call a server-side endpoint using AJAX (to make the change persistent). You can also change the event color using DayPilot.Scheduler.events...

Loading problem

Answered: Unfortunately, the order of "scheduler_default_matrix_vertical_line" elements is not guaranteed. If you want to display vertical lines at specified locations (e.g. to mark end of day) you can use sep...

Timeheader doesn't scroll vertically

Hi Daypilot, I'm using very old version of DayPilot having version "1418". Now I have a problem with Daypilot Calendar. In my Calendar, I have around 30 days, when I scroll to see another dates, the ...

Wrap text in DayPilot Weekly Scheduler

Answered: The text wrapping is disabled by default - you can enable it using this property: https://api.daypilot.org/daypilot-scheduler-eventtextwrappingenabled/

timeline assign date

Answered: Hi Otto, You can create DayPilot.Date object from an ISO string using a constructor: var date = new DayPilot.Date("2019-05-04T12:00:00"); // "2019-05-04 12:00:00" works as well See also: https://api....

Daypilot Javascript

Answered: After the 60 days has been completed, you either need to pay or the trail would end and you won't be able to use it further.

login to scheduler

Hello, is there a sample how to handle user login/logout for the scheduler users. Thank you in advance Otto

HTML5 Hotel Room Booking (JavaScript/PHP) bubble

Answered: The bubble text/HTML needs to be specified using "bubbleHtml" property of the event data object: https://doc.daypilot.org/scheduler/event-bubble/ If the "bubbleHtml" property is not part of the serve...

How use Daypilot on Laravel

I have project for work orders on laravel I like to use scheduler of daypilot. But lmodal.showUrl and loadResources() did not work. How I can use. Please let me know samples.

BubbleText

The bubble text is slower to display upon hover when I there are more resources. This happens in Chrome.

Display Totals On Rows and Columns

Answered: Hi Aliaa, Sorry for the delay. There are actually two event handlers that let you customize the row headers: 1. The onBeforeResHeaderRender is a legacy event which is only fired when the rows are loa...

Slow in rendering cells

Answered: The Scheduler is optimized and it only renders the cells for the current viewport. However, this configuration extends the viewport to the whole grid and it displays all 100*15*24 = 60,000 cells at o...

Event rendering on copy

Answered: Most likely, the problem is that the new event has the same ID as the original one. After recent changes, the Scheduler requires each event to have a unique ID. This applies since the various event i...

Extra Fields Add

Answered: The modal dialog can show any HTML page using showUrl() method. You can create a standard page with the required fields and display it using showUrl(). You can pass the form data back to the calendar...

cssClassPrefix overrides resource tree backColor

Answered: You can extend your onBeforeCellRender like this to apply the green background color: dp.onBeforeCellRender = function(args) { var row = dp.rows.find(args.cell.resource); if (row.data.backColor) { ar...

Highlight holidays

Answered: I figured it out... dp.onBeforeCellRender = function(args) { var cellDate = moment(args.cell.start.value).format("YYYY-MM-DD"); if (jQuery.inArray(cellDate, holidayArr) !== -1) { args.cell.backColor ...