Questions Tagged javascript

Override Daypilot.min.js function

Answered: In case of the ASP.NET WebForms version the client-side library is embedded in the DLL and it's inserted into the page using internal ASP.NET mechanisms. As far as I can tell it's impossible to inser...

Assign Multiple Background Color to an Event

Answered: You can insert custom segments into an event using "active areas": https://doc.daypilot.org/scheduler/event-active-areas/ You can specify the active area position using start/end properties instead o...

How to Get Specific Date of An Event

Answered: The current position in the grid (in pixels) is stored in DayPilot.Scheduler.coords object. This value is updated in real time: var coords = dp.coords; // coords.x, coords.y You can use DayPilot.Sche...

Mouse click on the cell not exactly

Answered: i found the reason why, because parent tag has a style with value: "margin-top: 50", change to: "padding-top:50" and it worked perfect ^_^

Javascript breaks when hover scroll bar

Hello, I am using DayPilot.Web.MVC version 8.3.5880.1 and daypilot-all.min.js version 2937. When I hover the scheduler scroll bar, on the bottom of the scheduler, I get this error message: "Unhandled...

Menu: menu is not defined

Answered: 1. The "contextMenu" property specifies a context menu for events. It's activated when you right-click an event (the default eventRightClickHandling value is set to "ContextMenu"). You can also map i...

loadEvents(); wanted to call every 10 sec

Answered: Thanks for the update. There is also a built-in AutoRefresh feature that is a bit smarter (it doesn't fire if a drag and drop operation is in progress): https://doc.daypilot.org/scheduler/autorefresh/

onTimeRangeSelected: giving 3 value start/end/resource

Answered: The original data object is accessible as "data" property of the row object. You can get the row object (DayPilot.Row class) using .rows.find(): var row = dp.rows.find(args.resource); var rm_cat = ro...

How to show Active Areas in Angular4

Answered: You might be defining onBeforeEventRender handler too late in the component lifecycle (after it is rendered). Try adding it to the config object (see also the Angular 4 Calendar tutorial at https://c...

How to highlight the busy days in angular2

Answered: <daypilot navigator [config]="navigatorConfig" [events]="events" [(date)]="calendarConfig.startDate"></daypilot-navigator> here [events]="events" is list of events which is used in calendar so same c...

How to get the start and end date

I am currently using the trial version of DayPilot Pro. I am displaying a default week / month view of the current week/month. I need to extract from the calendar the start and end dates it is showin...

module daypilot angular

hi ! i would add this calendar to my software but it wont add the library daypilot pro angular so i install it , i put it in systemconfig.ts : " 'daypilot-pro-angular': 'npm:daypilot-pro-angular' " b...

two scheduler synchronization

Hello, I have two schedulers on a page. Bottom one doesn't have a timline and it's right under the first scheduler. Cells have the same width, so they look like one grid. But when I expand groups ins...

How to change first column header from time to date?

Answered: Such a view isn't supported at the moment. I recommend using the Scheduler ( https://doc.daypilot.org/scheduler/ ). The Scheduler can display days on the X axis and a hierarchy of resources on the Y ...

hide resources name row

Answered: You can use "rowHeaderCols" property instead of "rowHeaderColumns". It's an older syntax that creates columns but doesn't generate the column headers. It holds an array with column widths: dp.rowHead...

Event overlay

When you create one-minute or two-minute events, and with two-minute intervals between events, they overlap. The configuration used is below. dp.days = 365; dp.locale = "pt-br"; dp.scale = "Day"; dp....