All Questions

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...

Error when uploaded on server

Answered: This error doesn't seem to be related to DayPilot. It looks like you might be using HtmlLink control with a path which the control is unable to resolve: HtmlLink myHtmlLink = new HtmlLink(); myHtmlLi...

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...

Timeline Queries

Answered: The output under the "DayPilot MVC" section in your sample image is what I would expect to see. This is how it is designed to work - the second time header row displays days and it starts and ends at...

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....

How to Load only a Single DayPilotScheduler

Sir, In my ASP.NET MVC application, I have added a tab control with 2 tab items in a view. Both the tab items contains 2 different daypilotscheduler objects. The problem is, when I start my applicati...

Set Scheduler width with javascript in View

Answered: You might want to check the "Auto Cell Width" feature which adjusts the cell width to fill the available space (there will be no horizontal scrollbar): https://doc.daypilot.org/scheduler/auto-cell-wi...

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...

Change Scheduler displayed Date format

Answered: The MVC Hotel Reservation tutorial at https://code.daypilot.org/32389/asp-net-mvc-hotel-room-booking uses the following code to format the start and end date: ReservationController.cs: public ActionR...

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...

MonthCalendar Event CSS

Answered: There is a property called EventTextAlignment which forces the alignment. It was used in the CssOnly="false" mode but it is being incorrectly applied in the CssOnly="true" mode as well. This issue is...

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...

Customise Cell Duration Label

Answered: You can customize the time headers using OnBeforeTimeHeaderRender: http://doc.daypilot.org/scheduler/time-header-customization/ The sample code would look like this: protected override void OnBeforeT...

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/...

Resources Slow to Load

Answered: Dan, Have you checked how long the SQL resource loading code takes on the server side? Loading 60 resources should be no problem. You take a look at the following demo for reference: http://www.daypi...

Display Tooltip

Answered: This solutions works w/ the API. this._drawEvent = function(e) { ... var inner = document.createElement("div"); inner.setAttribute("unselectable", "on"); inner.className = calendar._prefixCssClass("_...