All Questions

How to Hide Context Menu Item

Answered: You can do this in onShow event handler - it's called before the menu is displayed and you can use it to modify the context menu items. You can find an example here: https://api.daypilot.org/daypilot...

How to get resource name instead of ID

Answered: You can get the row object (DayPilot.Row) using rows.find(): dp.onEventMove = function(args) { var row = dp.rows.find(args.newResource); // ... }; It's also possible to use onEventMoving instead to b...

Add/edit events with in-place editor

Answered: The keyboard navigation tutorial is now available: https://code.daypilot.org/29708/javascript-scheduler-keyboard-navigation

rowsfrozen last row disappear

Answered: This issue should be fixed now in the latest sandbox build (2020.3.4603): https://release.daypilot.org/changes/js/ Let me know if the problem persists.

ScrollToResourse() in dynamic event rendering

Answered: It looks like the onAfterRender event handler wasn't fired properly if args.clearEvents was set to true in onScroll (and that is the default value). It should be fixed now in the latest sandbox build...

Edit appointment screen not showing all fields

Answered: It looks like there is a problem with SQL on line 51 (appointment_edit.php) which works in SQLite but not in MySQL: foreach ($db->query('SELECT * FROM [doctor] ORDER BY [doctor_name]') as $item) { It...

form modal doesn't open

Answered: This seems to work fine: var form = [ {name: "Move From", id: "fromDate", dateFormat: "MMMM d, yyyy"}, {name: "Move To", id: "toDate", dateFormat: "MMMM d, yyyy"} ]; DayPilot.Modal.form(form).then(fu...

Event counter per day

Hello, I'm building a scheduler with 3 different possible events for each resource and I would like to get the number of these events for all the resources per day. Do you think there is a solution? ...

Change color on header click

Answered: Please take a look at the following tutorial: https://code.daypilot.org/68382/javascript-calendar-selecting-and-highlighting-columns

Why after deploying in iis, IE11 doesn't show calendar?

Answered: Sometimes, the intranet site is configured (by group policy or in IE settings) to use IE compatibility mode which is not supported by DayPilot. This is the most common problem of different behavior w...

export as pdf

Answered: You'll need to define images using active areas as demonstrated in this tutorial: https://code.daypilot.org/61152/javascript-scheduler-how-to-export-html-to-image

onScroll infinite loop

Answered: Unfortunately, I'm not able to reproduce the problem with args.clearEvents = true. Which version of DayPilot do you use? In Angular, it's necessary to avoid changes to the watched objects ([config] a...

Rowheader columns background-color

Answered: You can set the background color for the whole row header using e.BackgroundColor in BeforeResHeaderRender: protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, DayPilot.Web.Ui.Even...

onRowClick/Clicked event

Answered: It's now available in the latest sandbox build (2020.2.4505): https://javascript.daypilot.org/sandbox/