Questions Tagged how-to
Highlighting Today
Answered: Yes, you were correct I was using Version 7.9.5741.1, now that I changed to 8.3.5862.1 is working properly. Thanks.
Disabled Rows
Answered: The best way would be to use TimeRangeSelectingJavaScript to provide a custom event handler that forbids the selection for the given rows. Something like this:
@Html.DayPilotScheduler("dps", new Da...
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 =...
Add or remove doctors
Answered: Management of doctors is not implemented in this tutorial. The doctor data is stored in the database, in a table called "doctor":
CREATE TABLE doctor (
doctor_id INTEGER PRIMARY KEY AU...
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...
Export Calendar Month with different event colors
Answered: The event colors should be already fixed in the latest sandbox version (since build 2936): https://javascript.daypilot.org/sandbox/ The TypeScript definitions [missing exportAs()] will be updated sho...
Changing HeaderDateFormat in Calendar has no affect on output
I have been experimenting with the DayPilot lite version 1.5.434.0, and I have been unable to change the way the dates are rendered. I would like to have the day name displayed, but currently it only...
One Event with multiple resources but same EventId
Answered: You need to supply one item in the datasource for each of the rows. Typically, you'll be storing the resources assignment (event-resource link) as a separate DB record anyway. I recommend using the a...
Event Resize in vertical and horizontal direction in Scheduler
how can i resize event in both direction horizontal and vertical ? it is just allow me to resize event in vertical direction but not in horizontal direction . can you please help me ?
Drag&Drop of events which cross the border of visible period
Hi! Here is an issue with events which cross the border of the beginning of the visible period. Every event is bound to the start date. But in this case the start date isn't even displayed. So we can...
How to highlight area on Scheduler when clicked on an event
Hi everybody, There is few time I have started to use Daypilot for JS. But now I have a problem that not seems to be in "Demo" section. My goal is to highlight some area when an Event is selected. Fo...
Scroll down a specific Event on filter
Hi, How can i scroll down to a specific event when i apply filter? . when i apply filter event filtered but i have to scroll down to find specific event . is there any way to go on specific event dir...
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...
Fix Header
Answered: Please take a look at HeightSpec property, especially Parent100Pct value: https://doc.daypilot.org/scheduler/100-pct-height/
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...
How to display full time on monthly calendar event
Answered: I found a solution in a demo project. The demo project is in the DayPilotProTrial-8.3.3601.zip on the following page : https://www.daypilot.org/demo/ On the StartEndTime aspx page, look for the OnBef...
Is it possible to change color to milestone
Is there any way to change color of milestone task in some conditions (code behind should be the best option in my case) Regards
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...
hideAfter property of bubble is not working
I have tried to set the hideAfter property to 8000 miliseconds, but bubble gets hide after mouseout. hideAfter property not working. please suggest Thanks
Apply filtering on "OnInit()" function
Answered: This will work fine - just make sure you don't overwrite Events in OnFinish(). OnFinish() is called at the end of every CallBack request.
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...
Can I switch column header x and y ?
Answered: Please see my answer here: https://forums.daypilot.org/Topic.aspx/3866/how-to-change-first-column-header-from-time-to-date
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 ax...
Calendar scroll speed
Answered: Basically everything inside function() { .... }:
<script type="text/javascript">
dp_day.nav.bottomRight.addEventListener("scroll", function() {
setTimeout(function() {
dp_week.nav.bottom...
DayPilot > Scheduler > Printing - results in blank page
Answered: OK. Finally got this to work. this was my final version: var image = this.$scope.dps.scheduler.exportAs("SVG" ,{ area: "range", dateFrom: this.formatDate(fromDate), dateTo: this.formatDate(toDate), q...
I want to appear tooltip
Answered: Unfortunately the column headers don't support tooltips in the Lite version at the moment.
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.rowHe...
Bubble error on production
Hello I have updated the version as I saw on your previous answers but still have error when hovering on the scheduler cells. Its happening only on production. thanks
Multi cell selection does not seem to work on scheduler in scale hour
Hi, I am using the scheduler from "daypilot-pro-angular": "https://npm.daypilot.org/daypilot-pro-angular/trial/8.3.2826.tar.gz" Unlike the various samples you have provided, I am not able to select t...
OnBeforeCellRender optimization
Answered: This event is called once for every cell. Therefore the implementation should be as fast as possible. You should avoid making database calls from there. Instead, load the required data in advance and...